/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/smoke/ |
H A D | It_posix_pthread_021.cpp | 39 // pthread_setcancelstate(int new, int *old): if new > 2U, return EINVAL, else return 0. in Testcase() 40 ret = pthread_setcancelstate(0, &oldstate); in Testcase() 43 ret = pthread_setcancelstate(3, &oldstate); in Testcase() 46 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in Testcase() 49 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in Testcase()
|
H A D | It_posix_pthread_006.cpp | 35 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadF01()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/smoke/ |
H A D | It_posix_pthread_021.c | 46 ret = pthread_setcancelstate(2, &oldstate); // 2, test for invalid param. in Testcase() 49 ret = pthread_setcancelstate(3, &oldstate); // 3, test for invalid param. in Testcase() 52 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in Testcase() 55 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in Testcase()
|
H A D | It_posix_pthread_006.c | 42 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadF01()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_058.c | 48 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in PthreadF01() 59 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &oldstate); in PthreadF01() 83 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &oldstate); in PthreadF02()
|
H A D | It_posix_pthread_056.c | 50 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in PthreadF01() 57 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &oldstate); in PthreadF01()
|
H A D | It_posix_pthread_241.c | 46 ret = pthread_setcancelstate(-100, NULL); // -100, test for invalid param. in PthreadF01()
|
H A D | It_posix_pthread_239.c | 44 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in PthreadF01()
|
H A D | It_posix_pthread_246.c | 44 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in PthreadF01()
|
H A D | It_posix_pthread_238.c | 44 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in PthreadF01()
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/ |
H A D | pthread_test_001.cpp | 62 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadFunc4() 89 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in ThreadFunc3() 94 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadFunc3()
|
H A D | pthread_test_004.cpp | 154 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadFunc4() 185 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in ThreadFunc3() 190 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadFunc3()
|
/kernel/liteos_m/testsuites/sample/posix/pthread/ |
H A D | It_posix_pthread_002.c | 35 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in ThreadF01()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_241.cpp | 39 ret = pthread_setcancelstate(-100, NULL); in pthread_f01()
|
H A D | It_posix_pthread_239.cpp | 37 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in pthread_f01()
|
H A D | It_posix_pthread_238.cpp | 37 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_f01()
|
/kernel/liteos_a/compat/posix/src/ |
H A D | pthread.c | 284 if (pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, (int *)0) != ENOERR) { in pthread_exit() 594 int pthread_setcancelstate(int state, int *oldState) in pthread_setcancelstate() function
|
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread.c | 302 int pthread_setcancelstate(int state, int *oldState) in pthread_setcancelstate() function 522 if (pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL) != 0) { in pthread_exit()
|
/kernel/liteos_m/testsuites/sample/posix/ |
H A D | pthread_func_test.c | 727 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in PthreadCancelFunc01() 779 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in PthreadTestcancelFunc01()
|
/kernel/liteos_m/testsuites/unittest/posix/src/pthread/ |
H A D | pthread_cond_func_test.c | 745 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_cancel_f01() 796 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_testcancel_f01()
|