diff options
Diffstat (limited to '')
-rw-r--r-- | src/notify.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/notify.c b/src/notify.c index 5d53b231d..ed46829ae 100644 --- a/src/notify.c +++ b/src/notify.c @@ -18,7 +18,7 @@ #include "notify.h" -int notifyInit(Notify *notify) +int notify_init(Notify *notify) { int ret; @@ -37,32 +37,32 @@ int notifyInit(Notify *notify) return 0; } -void notifyEnter(Notify *notify) +void notify_enter(Notify *notify) { pthread_mutex_lock(¬ify->mutex); } -void notifyLeave(Notify *notify) +void notify_leave(Notify *notify) { pthread_mutex_unlock(¬ify->mutex); } -void notifyWait(Notify *notify) +void notify_wait(Notify *notify) { if (!notify->pending) pthread_cond_wait(¬ify->cond, ¬ify->mutex); notify->pending = 0; } -void notifySignal(Notify *notify) +void notify_signal(Notify *notify) { notify->pending = 1; pthread_cond_signal(¬ify->cond); } -void notifySignalSync(Notify *notify) +void notify_signal_sync(Notify *notify) { pthread_mutex_lock(¬ify->mutex); - notifySignal(notify); + notify_signal(notify); pthread_mutex_unlock(¬ify->mutex); } |