/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
D | pthread_mutex_test_008.cpp | 45 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 …]
|
D | pthread_mutex_test_007.cpp | 48 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 …]
|
D | pthread_mutex_test_019.cpp | 71 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()
|
D | pthread_mutex_test_021.cpp | 95 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()
|
D | pthread_mutex_test_022.cpp | 95 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()
|
D | pthread_mutex_test_020.cpp | 95 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/ |
D | pthread_mutex_test_018.cpp | 47 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 …]
|