Lines Matching refs:server_thread
108 } server_thread; member
514 if (h->server_thread.t == NULL) in join_server_thread()
517 ossl_crypto_mutex_lock(h->server_thread.m); in join_server_thread()
518 h->server_thread.stop = 1; in join_server_thread()
519 ossl_crypto_condvar_signal(h->server_thread.c); in join_server_thread()
520 ossl_crypto_mutex_unlock(h->server_thread.m); in join_server_thread()
522 ossl_crypto_thread_native_join(h->server_thread.t, &rv); in join_server_thread()
523 ossl_crypto_thread_native_clean(h->server_thread.t); in join_server_thread()
524 h->server_thread.t = NULL; in join_server_thread()
539 if (h->server_thread.m == NULL || *p_checked_out) in s_lock()
542 ossl_crypto_mutex_lock(h->server_thread.m); in s_lock()
553 if (h->server_thread.m == NULL || !*p_checked_out) in s_unlock()
558 ossl_crypto_mutex_unlock(h->server_thread.m); in s_unlock()
565 ossl_crypto_mutex_lock(h->server_thread.m); in server_helper_thread()
570 ready = h->server_thread.ready; in server_helper_thread()
571 stop = h->server_thread.stop; in server_helper_thread()
577 ossl_crypto_condvar_wait(h->server_thread.c, h->server_thread.m); in server_helper_thread()
582 ossl_crypto_mutex_unlock(h->server_thread.m); in server_helper_thread()
588 ossl_crypto_mutex_lock(h->server_thread.m); in server_helper_thread()
591 ossl_crypto_mutex_unlock(h->server_thread.m); in server_helper_thread()
671 ossl_crypto_mutex_free(&h->server_thread.m); in helper_cleanup()
672 ossl_crypto_condvar_free(&h->server_thread.c); in helper_cleanup()
822 if (!TEST_ptr(h->server_thread.m = ossl_crypto_mutex_new())) in helper_init()
825 if (!TEST_ptr(h->server_thread.c = ossl_crypto_condvar_new())) in helper_init()
828 h->server_thread.t in helper_init()
830 if (!TEST_ptr(h->server_thread.t)) in helper_init()
1106 else if (h->blocking && !h->server_thread.ready) { in run_script_worker()
1107 ossl_crypto_mutex_lock(h->server_thread.m); in run_script_worker()
1108 h->server_thread.ready = 1; in run_script_worker()
1109 ossl_crypto_condvar_signal(h->server_thread.c); in run_script_worker()
1110 ossl_crypto_mutex_unlock(h->server_thread.m); in run_script_worker()