freebsd_network: Implement cv_destroy.
This commit is contained in:
@@ -3,9 +3,12 @@
|
|||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT license.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
#include <compat/sys/mutex.h>
|
#include <compat/sys/mutex.h>
|
||||||
#include <compat/sys/condvar.h>
|
|
||||||
#include <compat/sys/kernel.h>
|
#include <compat/sys/kernel.h>
|
||||||
|
}
|
||||||
|
|
||||||
|
#include <compat/sys/condvar.h>
|
||||||
|
|
||||||
|
|
||||||
void
|
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
|
void
|
||||||
cv_signal(struct cv* variable)
|
cv_signal(struct cv* variable)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user