freebsd_network: Implement cv_destroy.

This commit is contained in:
Augustin Cavalier
2022-02-24 21:06:58 -05:00
parent eeec7ed477
commit ba641651b4
+12 -1
View File
@@ -3,9 +3,12 @@
* Distributed under the terms of the MIT license.
*/
extern "C" {
#include <compat/sys/mutex.h>
#include <compat/sys/condvar.h>
#include <compat/sys/kernel.h>
}
#include <compat/sys/condvar.h>
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)
{