aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c14
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(&notify->mutex);
}
-void notifyLeave(Notify *notify)
+void notify_leave(Notify *notify)
{
pthread_mutex_unlock(&notify->mutex);
}
-void notifyWait(Notify *notify)
+void notify_wait(Notify *notify)
{
if (!notify->pending)
pthread_cond_wait(&notify->cond, &notify->mutex);
notify->pending = 0;
}
-void notifySignal(Notify *notify)
+void notify_signal(Notify *notify)
{
notify->pending = 1;
pthread_cond_signal(&notify->cond);
}
-void notifySignalSync(Notify *notify)
+void notify_signal_sync(Notify *notify)
{
pthread_mutex_lock(&notify->mutex);
- notifySignal(notify);
+ notify_signal(notify);
pthread_mutex_unlock(&notify->mutex);
}