Lines Matching refs:thread
18 static int threading_thread_create_pthread(mbedtls_test_thread_t *thread, void *(*thread_func)( in threading_thread_create_pthread() argument
21 if (thread == NULL || thread_func == NULL) { in threading_thread_create_pthread()
25 if (pthread_create(&thread->thread, NULL, thread_func, thread_data)) { in threading_thread_create_pthread()
32 static int threading_thread_join_pthread(mbedtls_test_thread_t *thread) in threading_thread_join_pthread() argument
34 if (thread == NULL) { in threading_thread_join_pthread()
38 if (pthread_join(thread->thread, NULL) != 0) { in threading_thread_join_pthread()
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, in threading_thread_create_fail() argument
57 (void) thread; in threading_thread_create_fail()
64 static int threading_thread_join_fail(mbedtls_test_thread_t *thread) in threading_thread_join_fail() argument
66 (void) thread; in threading_thread_join_fail()
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;