notify: don't use camelCase in notify.[ch]
git-svn-id: https://svn.musicpd.org/mpd/trunk@7367 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
14
src/notify.c
14
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user