Home
last modified time | relevance | path

Searched refs:attrp (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.6.0/lib/libc/common/source/thrd/
Dmtx.c17 pthread_mutexattr_t *attrp = NULL; in mtx_init() local
25 attrp = &attr; in mtx_init()
26 ret = pthread_mutexattr_init(attrp); in mtx_init()
29 ret = pthread_mutexattr_settype(attrp, PTHREAD_MUTEX_RECURSIVE); in mtx_init()
36 switch (pthread_mutex_init(mutex, attrp)) { in mtx_init()
45 if (attrp != NULL) { in mtx_init()
46 (void)pthread_mutexattr_destroy(attrp); in mtx_init()
/Zephyr-Core-3.6.0/tests/modules/thrift/ThriftTest/src/
Dmain.cpp123 pthread_attr_t *attrp = &attr; in thrift_test_before() local
126 attrp = NULL; in thrift_test_before()
128 rv = pthread_attr_init(attrp); in thrift_test_before()
130 rv = pthread_attr_setstack(attrp, ThriftTest_server_stack, in thrift_test_before()
143 rv = pthread_create(&context.server_thread, attrp, server_func, nullptr); in thrift_test_before()
/Zephyr-Core-3.6.0/samples/net/sockets/socketpair/src/
Dmain.c104 pthread_attr_t *attrp = &attr; in setup() local
106 pthread_attr_t *attrp = NULL; in setup() local
119 res = pthread_attr_init(attrp); in setup()
134 res = pthread_create(&ctx[i].thread, attrp, fun, &ctx[i]); in setup()
/Zephyr-Core-3.6.0/tests/posix/common/src/
Dpthread_attr.c36 static void create_thread_common(const pthread_attr_t *attrp, bool expect_success, bool joinable) in create_thread_common() argument
45 zassert_ok(pthread_create(&th, attrp, thread_entry, UINT_TO_POINTER(joinable))); in create_thread_common()
47 zassert_not_ok(pthread_create(&th, attrp, thread_entry, UINT_TO_POINTER(joinable))); in create_thread_common()
69 static inline void can_create_thread(const pthread_attr_t *attrp) in can_create_thread() argument
71 create_thread_common(attrp, true, true); in can_create_thread()
74 static inline void cannot_create_thread(const pthread_attr_t *attrp) in cannot_create_thread() argument
76 create_thread_common(attrp, false, true); in cannot_create_thread()