From 625e4755d1c59e537dc122a540d3c21de962c3d1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 Aug 2010 11:03:53 +0200 Subject: notify: add function notify_clear() --- src/notify.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/notify.c') diff --git a/src/notify.c b/src/notify.c index 9168867d6..3b45c22b4 100644 --- a/src/notify.c +++ b/src/notify.c @@ -48,3 +48,10 @@ void notify_signal(struct notify *notify) g_cond_signal(notify->cond); g_mutex_unlock(notify->mutex); } + +void notify_clear(struct notify *notify) +{ + g_mutex_lock(notify->mutex); + notify->pending = false; + g_mutex_unlock(notify->mutex); +} -- cgit v1.2.3