Home
last modified time | relevance | path

Searched refs:timeVal (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
Dpthread_mutex_test_008.cpp45 struct timeval timeVal = { 0 }; in ThreadFuncTest3() local
50 gettimeofday(&timeVal, nullptr); in ThreadFuncTest3()
52 time.tv_sec = timeVal.tv_sec + 15; // 15 in ThreadFuncTest3()
53 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest3()
71 struct timeval timeVal = { 0 }; in ThreadFuncTest2() local
76 gettimeofday(&timeVal, nullptr); in ThreadFuncTest2()
78 time.tv_sec = timeVal.tv_sec + 10; // 10 in ThreadFuncTest2()
79 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest2()
98 struct timeval timeVal = { 0 }; in ThreadFuncTest1() local
103 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1()
[all …]
Dpthread_mutex_test_007.cpp48 struct timeval timeVal = { 0 }; in ThreadFuncTest3() local
53 gettimeofday(&timeVal, nullptr); in ThreadFuncTest3()
55 time.tv_sec = timeVal.tv_sec + 10; // 10, for test in ThreadFuncTest3()
56 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest3()
82 struct timeval timeVal = { 0 }; in ThreadFuncTest2() local
87 gettimeofday(&timeVal, nullptr); in ThreadFuncTest2()
89 time.tv_sec = timeVal.tv_sec + 5; // 5, for test in ThreadFuncTest2()
90 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest2()
116 struct timeval timeVal = { 0 }; in ThreadFuncTest1() local
121 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1()
[all …]
Dpthread_mutex_test_019.cpp71 struct timeval timeVal = { 0 }; in ThreadFuncTest1() local
73 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1()
75 if(timeVal.tv_usec + 100000 >= 1000000) { // 100000us, delay time; 1000000us, compare in ThreadFuncTest1()
76 time.tv_sec = timeVal.tv_sec + 1; in ThreadFuncTest1()
77 …time.tv_nsec = (timeVal.tv_usec + 100000 - 1000000) * 1000; // 100000, delaytime; 1000, us to ns; … in ThreadFuncTest1()
79 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest1()
80 time.tv_nsec = (timeVal.tv_usec + 100000) * 1000; // 1000, 100000us to ns in ThreadFuncTest1()
112 struct timeval timeVal = { 0 }; in Testcase() local
147 gettimeofday(&timeVal, nullptr); in Testcase()
150 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
Dpthread_mutex_test_021.cpp95 struct timeval timeVal = { 0 }; in ThreadFuncTest0() local
97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0()
99 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest0()
100 time.tv_nsec = (timeVal.tv_usec + 1000 * 10 * 10) * 1000; // 1000, 10 ms to ns in ThreadFuncTest0()
139 struct timeval timeVal = { 0 }; in Testcase() local
180 gettimeofday(&timeVal, nullptr); in Testcase()
183 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
Dpthread_mutex_test_022.cpp95 struct timeval timeVal = { 0 }; in ThreadFuncTest0() local
97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0()
99 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest0()
100 time.tv_nsec = (timeVal.tv_usec + 1000 * 10 * 10) * 1000; // 1000, 10 ms to ns in ThreadFuncTest0()
139 struct timeval timeVal = { 0 }; in Testcase() local
180 gettimeofday(&timeVal, nullptr); in Testcase()
183 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
Dpthread_mutex_test_020.cpp95 struct timeval timeVal = { 0 }; in ThreadFuncTest0() local
97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0()
99 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest0()
100 time.tv_nsec = (timeVal.tv_usec + 1000 * 10 * 10) * 1000; // 1000, 10 ms to ns in ThreadFuncTest0()
139 struct timeval timeVal = { 0 }; in Testcase() local
183 gettimeofday(&timeVal, nullptr); in Testcase()
186 if ((time.tv_sec - timeVal.tv_sec) >= 1) { in Testcase()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/
Dpthread_mutex_test_018.cpp47 struct timeval timeVal = { 0 }; in ThreadFuncTest2() local
72 struct timeval timeVal = { 0 }; in ThreadFuncTest1() local
74 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1()
76 if(timeVal.tv_usec + 100000 >= 1000000) { // 100000us, delay time; 1000000us, compare in ThreadFuncTest1()
77 time.tv_sec = timeVal.tv_sec + 1; in ThreadFuncTest1()
78 …time.tv_nsec = (timeVal.tv_usec + 100000 - 1000000) * 1000; // 100000, delaytime; 1000, us to ns; … in ThreadFuncTest1()
80 time.tv_sec = timeVal.tv_sec + 0; in ThreadFuncTest1()
81 time.tv_nsec = (timeVal.tv_usec + 100000) * 1000; // 1000, 100000us to ns in ThreadFuncTest1()
109 struct timeval timeVal = { 0 }; in Testcase() local
141 gettimeofday(&timeVal, nullptr); in Testcase()
[all …]