Home
last modified time | relevance | path

Searched refs:detachState (Results 1 - 7 of 7) sorted by relevance

/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_152.c43 INT32 detachState, ret; in Testcase() local
52 ret = pthread_attr_getdetachstate(&newAttr, &detachState); in Testcase()
54 ICUNIT_ASSERT_EQUAL(detachState, PTHREAD_CREATE_JOINABLE, detachState); in Testcase()
H A DIt_posix_pthread_173.c43 INT32 detachState, ret; in Testcase() local
51 ret = pthread_attr_getdetachstate(&newAttr, &detachState); in Testcase()
53 ICUNIT_ASSERT_EQUAL(detachState, PTHREAD_CREATE_JOINABLE, detachState); in Testcase()
/kernel/liteos_m/testsuites/sample/posix/pthread/
H A DIt_posix_pthread_021.c36 INT32 detachState, ret; in Testcase() local
44 ret = pthread_attr_getdetachstate(&newAttr, &detachState); in Testcase()
46 ICUNIT_ASSERT_EQUAL(detachState, PTHREAD_CREATE_JOINABLE, detachState); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_152.cpp36 INT32 detachState, ret = 0; in Testcase() local
46 ret = pthread_attr_getdetachstate(&newAttr, &detachState); in Testcase()
48 ICUNIT_ASSERT_EQUAL(detachState, PTHREAD_CREATE_JOINABLE, detachState); in Testcase()
H A DIt_posix_pthread_173.cpp36 INT32 detachState, ret = PTHREAD_NO_ERROR; in Testcase() local
44 ret = pthread_attr_getdetachstate(&newAttr, &detachState); in Testcase()
46 ICUNIT_ASSERT_EQUAL(detachState, PTHREAD_CREATE_JOINABLE, detachState); in Testcase()
/kernel/liteos_a/compat/posix/src/
H A Dpthread_attr.c69 int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachState) in pthread_attr_setdetachstate() argument
71 if ((attr != NULL) && ((detachState == PTHREAD_CREATE_JOINABLE) || (detachState == PTHREAD_CREATE_DETACHED))) { in pthread_attr_setdetachstate()
72 attr->detachstate = (UINT32)detachState; in pthread_attr_setdetachstate()
79 int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachState) in pthread_attr_getdetachstate() argument
81 if ((attr == NULL) || (detachState == NULL)) { in pthread_attr_getdetachstate()
85 *detachState = (int)attr->detachstate; in pthread_attr_getdetachstate()
/kernel/liteos_m/kal/posix/src/
H A Dpthread_attr.c69 int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachState) in pthread_attr_setdetachstate() argument
71 if ((attr != NULL) && ((detachState == PTHREAD_CREATE_JOINABLE) || (detachState == PTHREAD_CREATE_DETACHED))) { in pthread_attr_setdetachstate()
72 attr->detachstate = (UINT32)detachState; in pthread_attr_setdetachstate()
79 int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachState) in pthread_attr_getdetachstate() argument
81 if ((attr == NULL) || (detachState == NULL)) { in pthread_attr_getdetachstate()
85 *detachState = (int)attr->detachstate; in pthread_attr_getdetachstate()

Completed in 2 milliseconds