aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/notify.c6
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(&notify->mutex);
+ pthread_cond_destroy(&notify->cond);
+}
+
void notify_enter(struct notify *notify)
{
pthread_mutex_lock(&notify->mutex);