From ba641651b4c8e7a760516519d84c8e11bafa159b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 24 Feb 2022 21:06:49 -0500 Subject: [PATCH] freebsd_network: Implement cv_destroy. --- src/libs/compat/freebsd_network/condvar.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/libs/compat/freebsd_network/condvar.cpp b/src/libs/compat/freebsd_network/condvar.cpp index a8e5ad6e4b..9a94f5f23b 100644 --- a/src/libs/compat/freebsd_network/condvar.cpp +++ b/src/libs/compat/freebsd_network/condvar.cpp @@ -3,9 +3,12 @@ * Distributed under the terms of the MIT license. */ +extern "C" { #include -#include #include +} + +#include void @@ -15,6 +18,14 @@ cv_init(struct cv* variable, const char* description) } +void +cv_destroy(struct cv* variable) +{ + variable->condition.NotifyAll(); + // Nothing else to do. +} + + void cv_signal(struct cv* variable) {