Lines Matching refs:server_thread

108     } server_thread;  member
511 if (h->server_thread.t == NULL) in join_server_thread()
514 ossl_crypto_mutex_lock(h->server_thread.m); in join_server_thread()
515 h->server_thread.stop = 1; in join_server_thread()
516 ossl_crypto_condvar_signal(h->server_thread.c); in join_server_thread()
517 ossl_crypto_mutex_unlock(h->server_thread.m); in join_server_thread()
519 ossl_crypto_thread_native_join(h->server_thread.t, &rv); in join_server_thread()
520 ossl_crypto_thread_native_clean(h->server_thread.t); in join_server_thread()
521 h->server_thread.t = NULL; in join_server_thread()
536 if (h->server_thread.m == NULL || *p_checked_out) in s_lock()
539 ossl_crypto_mutex_lock(h->server_thread.m); in s_lock()
550 if (h->server_thread.m == NULL || !*p_checked_out) in s_unlock()
555 ossl_crypto_mutex_unlock(h->server_thread.m); in s_unlock()
562 ossl_crypto_mutex_lock(h->server_thread.m); in server_helper_thread()
567 ready = h->server_thread.ready; in server_helper_thread()
568 stop = h->server_thread.stop; in server_helper_thread()
574 ossl_crypto_condvar_wait(h->server_thread.c, h->server_thread.m); in server_helper_thread()
579 ossl_crypto_mutex_unlock(h->server_thread.m); in server_helper_thread()
585 ossl_crypto_mutex_lock(h->server_thread.m); in server_helper_thread()
588 ossl_crypto_mutex_unlock(h->server_thread.m); in server_helper_thread()
668 ossl_crypto_mutex_free(&h->server_thread.m); in helper_cleanup()
669 ossl_crypto_condvar_free(&h->server_thread.c); in helper_cleanup()
819 if (!TEST_ptr(h->server_thread.m = ossl_crypto_mutex_new())) in helper_init()
822 if (!TEST_ptr(h->server_thread.c = ossl_crypto_condvar_new())) in helper_init()
825 h->server_thread.t in helper_init()
827 if (!TEST_ptr(h->server_thread.t)) in helper_init()
1103 else if (h->blocking && !h->server_thread.ready) { in run_script_worker()
1104 ossl_crypto_mutex_lock(h->server_thread.m); in run_script_worker()
1105 h->server_thread.ready = 1; in run_script_worker()
1106 ossl_crypto_condvar_signal(h->server_thread.c); in run_script_worker()
1107 ossl_crypto_mutex_unlock(h->server_thread.m); in run_script_worker()