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
This commit is contained in:
Eric Wong 2008-04-12 10:27:57 +00:00
parent 30bd8b2c0f
commit 78370a9759

View File

@ -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);
}