Home
last modified time | relevance | path

Searched refs:pthread_setcancelstate (Results 1 - 20 of 20) sorted by relevance

/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/smoke/
H A DIt_posix_pthread_021.cpp39 // 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 DIt_posix_pthread_006.cpp35 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadF01()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/smoke/
H A DIt_posix_pthread_021.c46 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 DIt_posix_pthread_006.c42 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in ThreadF01()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_058.c48 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 DIt_posix_pthread_056.c50 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in PthreadF01()
57 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &oldstate); in PthreadF01()
H A DIt_posix_pthread_241.c46 ret = pthread_setcancelstate(-100, NULL); // -100, test for invalid param. in PthreadF01()
H A DIt_posix_pthread_239.c44 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in PthreadF01()
H A DIt_posix_pthread_246.c44 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in PthreadF01()
H A DIt_posix_pthread_238.c44 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in PthreadF01()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/
H A Dpthread_test_001.cpp62 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 Dpthread_test_004.cpp154 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 DIt_posix_pthread_002.c35 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in ThreadF01()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_241.cpp39 ret = pthread_setcancelstate(-100, NULL); in pthread_f01()
H A DIt_posix_pthread_239.cpp37 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); in pthread_f01()
H A DIt_posix_pthread_238.cpp37 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_f01()
/kernel/liteos_a/compat/posix/src/
H A Dpthread.c284 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 Dpthread.c302 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 Dpthread_func_test.c727 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 Dpthread_cond_func_test.c745 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_cancel_f01()
796 ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); in pthread_testcancel_f01()

Completed in 15 milliseconds