summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_thread_assist.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-02-22 19:15:16 +0000
committerHugo Landau <hlandau@openssl.org>2023-03-30 11:14:09 +0100
commit1dd04a0fe2ffc4104db5198543ed0ec5895e9651 (patch)
tree9f2bb11913cee7a9b622c8882b4d086f491abbd3 /ssl/quic/quic_thread_assist.c
parent99ed85bba9de5d9983d3796c18e62041d3ce6575 (diff)
QUIC Thread Assisted Mode: Support Windows XP
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20348)
Diffstat (limited to 'ssl/quic/quic_thread_assist.c')
-rw-r--r--ssl/quic/quic_thread_assist.c8
1 files changed, 2 insertions, 6 deletions
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;
}