Searched refs:attrp (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/lib/libc/common/source/thrd/ |
D | mtx.c | 17 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-latest/tests/modules/thrift/ThriftTest/src/ |
D | main.cpp | 123 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-latest/tests/posix/xsi_threads_ext/src/ |
D | main.c | 38 static void create_thread_common_entry(const pthread_attr_t *attrp, bool expect_success, in create_thread_common_entry() argument 48 zassert_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry() 50 zassert_not_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry() 72 static void create_thread_common(const pthread_attr_t *attrp, bool expect_success, bool joinable) in create_thread_common() argument 74 create_thread_common_entry(attrp, expect_success, joinable, thread_entry, in create_thread_common() 78 static inline void can_create_thread(const pthread_attr_t *attrp) in can_create_thread() argument 80 create_thread_common(attrp, true, true); in can_create_thread()
|
/Zephyr-latest/tests/posix/common/src/ |
D | pthread_attr.c | 36 static void create_thread_common_entry(const pthread_attr_t *attrp, bool expect_success, in create_thread_common_entry() argument 46 zassert_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry() 48 zassert_not_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry() 70 static void create_thread_common(const pthread_attr_t *attrp, bool expect_success, bool joinable) in create_thread_common() argument 72 create_thread_common_entry(attrp, expect_success, joinable, thread_entry, in create_thread_common() 76 static inline void can_create_thread(const pthread_attr_t *attrp) in can_create_thread() argument 78 create_thread_common(attrp, true, true); in can_create_thread() 81 static inline void cannot_create_thread(const pthread_attr_t *attrp) in cannot_create_thread() argument 83 create_thread_common(attrp, false, true); in cannot_create_thread()
|
/Zephyr-latest/samples/net/sockets/socketpair/src/ |
D | main.c | 104 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()
|