diff options
Diffstat (limited to '')
-rw-r--r-- | src/notify.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/notify.c b/src/notify.c index 4f8a0d296..edb77f66d 100644 --- a/src/notify.c +++ b/src/notify.c @@ -34,6 +34,12 @@ void notify_init(struct notify *notify) notify->pending = 0; } +void notify_deinit(struct notify *notify) +{ + pthread_mutex_destroy(¬ify->mutex); + pthread_cond_destroy(¬ify->cond); +} + void notify_enter(struct notify *notify) { pthread_mutex_lock(¬ify->mutex); |