Lines Matching refs:thread
18 CRYPTO_THREAD *thread; in thread_start_thunk() local
21 thread = (CRYPTO_THREAD *)vthread; in thread_start_thunk()
23 thread->thread_id = GetCurrentThreadId(); in thread_start_thunk()
25 ret = thread->routine(thread->data); in thread_start_thunk()
26 ossl_crypto_mutex_lock(thread->statelock); in thread_start_thunk()
27 CRYPTO_THREAD_SET_STATE(thread, CRYPTO_THREAD_FINISHED); in thread_start_thunk()
28 thread->retval = ret; in thread_start_thunk()
29 ossl_crypto_condvar_signal(thread->condvar); in thread_start_thunk()
30 ossl_crypto_mutex_unlock(thread->statelock); in thread_start_thunk()
35 int ossl_crypto_thread_native_spawn(CRYPTO_THREAD *thread) in ossl_crypto_thread_native_spawn() argument
43 *handle = (HANDLE)_beginthreadex(NULL, 0, &thread_start_thunk, thread, 0, NULL); in ossl_crypto_thread_native_spawn()
47 thread->handle = handle; in ossl_crypto_thread_native_spawn()
51 thread->handle = NULL; in ossl_crypto_thread_native_spawn()
56 int ossl_crypto_thread_native_perform_join(CRYPTO_THREAD *thread, CRYPTO_THREAD_RETVAL *retval) in ossl_crypto_thread_native_perform_join() argument
61 if (thread == NULL || thread->handle == NULL) in ossl_crypto_thread_native_perform_join()
64 handle = (HANDLE *) thread->handle; in ossl_crypto_thread_native_perform_join()
92 int ossl_crypto_thread_native_is_self(CRYPTO_THREAD *thread) in ossl_crypto_thread_native_is_self() argument
94 return thread->thread_id == GetCurrentThreadId(); in ossl_crypto_thread_native_is_self()