Lines Matching refs:thread
18 static int threading_thread_create_pthread(mbedtls_test_thread_t *thread, void *(*thread_func)(
21 if (thread == NULL || thread_func == NULL) {
25 if (pthread_create(&thread->thread, NULL, thread_func, thread_data)) {
32 static int threading_thread_join_pthread(mbedtls_test_thread_t *thread)
34 if (thread == NULL) {
38 if (pthread_join(thread->thread, NULL) != 0) {
45 int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread, void *(*thread_func)(void *),
47 int (*mbedtls_test_thread_join)(mbedtls_test_thread_t *thread) = threading_thread_join_pthread;
53 static int threading_thread_create_fail(mbedtls_test_thread_t *thread,
57 (void) thread;
64 static int threading_thread_join_fail(mbedtls_test_thread_t *thread)
66 (void) thread;
71 int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread, void *(*thread_func)(void *),
73 int (*mbedtls_test_thread_join)(mbedtls_test_thread_t *thread) = threading_thread_join_fail;