From 1dd04a0fe2ffc4104db5198543ed0ec5895e9651 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Wed, 22 Feb 2023 19:15:16 +0000 Subject: QUIC Thread Assisted Mode: Support Windows XP Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/20348) --- ssl/quic/quic_thread_assist.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ssl/quic/quic_thread_assist.c') diff --git a/ssl/quic/quic_thread_assist.c b/ssl/quic/quic_thread_assist.c index 3e2ff1bc6f..93d246ea8e 100644 --- a/ssl/quic/quic_thread_assist.c +++ b/ssl/quic/quic_thread_assist.c @@ -85,7 +85,7 @@ int ossl_quic_thread_assist_stop_async(QUIC_THREAD_ASSIST *qta) { if (!qta->teardown) { qta->teardown = 1; - ossl_crypto_condvar_broadcast(qta->cv); + ossl_crypto_condvar_signal(qta->cv); } return 1; @@ -133,11 +133,7 @@ int ossl_quic_thread_assist_notify_deadline_changed(QUIC_THREAD_ASSIST *qta) if (qta->teardown) return 0; - /* - * Wake-one would be better here but as there is only one listening thread - * this does not actually matter. - */ - ossl_crypto_condvar_broadcast(qta->cv); + ossl_crypto_condvar_signal(qta->cv); return 1; } -- cgit v1.2.3