aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-04-12 10:27:57 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 10:27:57 +0000
commit78370a9759cee1f4ebcf547ba1ae6704e133d9df (patch)
treefb3b214547b5de5fe05a235c596da0a5b22facd1
parent30bd8b2c0f08d2a8e571f4a2db3ece347a64f87a (diff)
downloadmpd-78370a9759cee1f4ebcf547ba1ae6704e133d9df.tar.gz
mpd-78370a9759cee1f4ebcf547ba1ae6704e133d9df.tar.xz
mpd-78370a9759cee1f4ebcf547ba1ae6704e133d9df.zip
main_notify: use pthread_cond_signal instead of broadcast
signal is all we need since we only have one waiter and likely faster git-svn-id: https://svn.musicpd.org/mpd/trunk@7349 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/main_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_notify.c b/src/main_notify.c
index a358a7053..1ecc11f3a 100644
--- a/src/main_notify.c
+++ b/src/main_notify.c
@@ -96,7 +96,7 @@ static void wakeup_via_cond(void)
if (ret == EBUSY)
return; /* nope, no need to wakeup at all */
- pthread_cond_broadcast(&main_wakeup);
+ pthread_cond_signal(&main_wakeup);
pthread_mutex_unlock(&main_wakeup_mutex);
}