/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/ |
H A D | pthread_test_002.cpp | 70 ret = pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m); in ThreadFuncTest2() 75 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest2() 86 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in ThreadFuncTest2() 91 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest2() 101 ret = pthread_setschedprio(pthread_self(), g_currThreadPri + 1); in ThreadFuncTest2() 132 ret = pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m); in ThreadFuncTest3() 137 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest3() 148 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in ThreadFuncTest3() 153 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest3() 179 ret = pthread_getschedparam(pthread_self(), in Testcase() [all...] |
H A D | pthread_test_001.cpp | 45 ret = pthread_detach(pthread_self()); in ThreadFunc5() 54 pthread_t pthread = pthread_self(); in ThreadFunc4() 82 pthread_t pthread = pthread_self(); in ThreadFunc3() 110 pthread_t pthread = pthread_self(); in ThreadFunc2() 118 ret = pthread_join(pthread_self(), 0); in ThreadFunc2() 121 ret = pthread_detach(pthread_self()); in ThreadFunc2() 135 return reinterpret_cast<void *>(pthread_self()); in ThreadFunc6() 155 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in ThreadFunc() 220 ret = pthread_getschedparam(pthread_self(), &g_currThreadPolicy, ¶m); in PthreadTest001()
|
H A D | pthread_test_004.cpp | 40 pthread_t pthread = pthread_self(); in ThreadFunc8() 58 pthread_t pthread = pthread_self(); in ThreadFunc7() 68 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in ThreadFunc7() 100 ret = pthread_detach(pthread_self()); in ThreadFunc5() 103 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in ThreadFunc5() 130 pthread_t pthread = pthread_self(); in ThreadFunc6() 143 pthread_t pthread = pthread_self(); in ThreadFunc4() 174 pthread_t pthread = pthread_self(); in ThreadFunc3() 216 ret = pthread_join(pthread_self(), 0); in threadFunc2() 219 ret = pthread_detach(pthread_self()); in threadFunc2() [all...] |
/kernel/liteos_a/testsuites/unittest/process/basic/process/smp/ |
H A D | process_test_smp_005.cpp | 40 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 44 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 68 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 72 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 85 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
H A D | process_test_smp_007.cpp | 41 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 65 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 69 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 88 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
H A D | process_test_smp_003.cpp | 46 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 57 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 69 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
H A D | process_test_smp_004.cpp | 37 ret = pthread_getaffinity_np(pthread_self(), 0, &cpuset); in Testcase() 39 ret = pthread_setaffinity_np(pthread_self(), 0, &cpuset); in Testcase()
|
H A D | process_test_smp_008.cpp | 40 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 44 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 66 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in PthreadTest01()
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
H A D | pthread_test_003.cpp | 45 pthread_t pthread = pthread_self(); in ThreadFuncTest2() 65 pthread_t pthread = pthread_self(); in ThreadFuncTest3() 90 ret = pthread_getschedparam(pthread_self(), &g_currThreadPolicy, ¶m); in Testcase() 106 ret = pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m); in Testcase() 118 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_206.c | 51 ret = pthread_setschedparam(pthread_self(), g_pthreadSchedPolicy, &schedparam); in PthreadF01() 55 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in PthreadF01() 63 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in PthreadF01() 67 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in PthreadF01()
|
H A D | It_posix_pthread_089.c | 63 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 66 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF01() 103 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF02() 106 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF02()
|
H A D | It_posix_pthread_088.c | 64 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 67 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF01() 102 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF02() 105 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF02()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_206.cpp | 44 ret = pthread_setschedparam(pthread_self(), g_pthreadSchedPolicy, &schedparam); in pthread_f01() 48 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in pthread_f01() 56 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in pthread_f01() 60 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in pthread_f01()
|
H A D | It_posix_pthread_089.cpp | 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 62 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f01() 99 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f02() 102 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f02()
|
H A D | It_posix_pthread_088.cpp | 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 62 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f01() 96 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f02() 99 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f02()
|
H A D | It_posix_pthread_044.cpp | 44 ret = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f02() 63 ret = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f01() 105 ret = pthread_getschedparam(pthread_self(), &policy, ¶m); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_048.cpp | 52 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 58 ret = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase() 62 ret = pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/ |
H A D | pthread_mutex_test_018.cpp | 45 pthread_t thread = pthread_self(); in ThreadFuncTest2() 70 pthread_t thread = pthread_self(); in ThreadFuncTest1() 103 pthread_t thread = pthread_self(); in Testcase() 111 ret = pthread_getschedparam(pthread_self(), &gCurrThreadPolicy, ¶m); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/lock/spinlock/smoke/ |
H A D | pthread_spinlock_test_001.cpp | 51 pthread_t thread = pthread_self(); in ThreadWriteFunc1() 93 pthread_t thread = pthread_self(); in ThreadWriteFunc() 131 pthread_t thread = pthread_self(); in Testcase() 143 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in Testcase()
|
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread.c | 116 } else if (IsPthread(pthread_self())) { in PthreadAttrCheck() 117 ret = pthread_getschedparam(pthread_self(), &policy, &schedParam); in PthreadAttrCheck() 177 pthread_t thread = pthread_self(); in CheckForCancel() 276 pthread_t thread = pthread_self(); in pthread_once() 307 pthread_t thread = pthread_self(); in pthread_setcancelstate() 340 pthread_t thread = pthread_self(); in pthread_setcanceltype() 392 pthread_t pthread_self(void) in pthread_self() function 513 pthread_t thread = pthread_self(); in pthread_exit() 634 pthread_t thread = pthread_self(); in pthread_key_create() 672 pthread_t thread = pthread_self(); in pthread_key_delete() [all...] |
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
H A D | pthread_mutex_test_002.cpp | 44 pthread_t thread = pthread_self(); in ThreadFuncTest3() 78 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in Testcase() 81 ret = pthread_getschedparam(pthread_self(), &currThreadPolicy, ¶m); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/lock/rwlock/full/ |
H A D | pthread_rwlock_test_002.cpp | 95 pthread_t thread = pthread_self(); in ThreadReadFunc() 136 pthread_t thread = pthread_self(); in ThreadWriteFunc1() 181 pthread_t thread = pthread_self(); in ThreadWriteFunc() 224 pthread_t thread = pthread_self(); in PthreadRwlockTest() 236 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in PthreadRwlockTest()
|
/kernel/liteos_a/testsuites/unittest/process/lock/rwlock/smoke/ |
H A D | pthread_rwlock_test_001.cpp | 96 pthread_t thread = pthread_self(); in ThreadReadFunc() 137 pthread_t thread = pthread_self(); in ThreadWriteFunc1() 182 pthread_t thread = pthread_self(); in ThreadWriteFunc() 224 pthread_t thread = pthread_self(); in Testcase() 236 ret = pthread_getschedparam(pthread_self(), &curThreadPolicy, ¶m); in Testcase()
|
/kernel/liteos_m/testsuites/sample/posix/pthread/ |
H A D | It_posix_pthread_022.c | 47 ret = pthread_setschedparam(pthread_self(), g_pthreadSchedPolicy, &sparam); in PthreadF01() 50 ret = pthread_getschedparam(pthread_self(), &policy, &sparam); in PthreadF01()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
H A D | shm_test_009.cpp | 111 ret = pthread_getschedparam(pthread_self(), &processPolicy, ¶m); in Testcase() 115 ret = pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m); in Testcase() 145 pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in Testcase()
|