changeset 3787:bce5ac1f368b

don't use semaphore/condvar messaging on Darwin because mach threads are high latency
author William Pitcock <nenolod@atheme.org>
date Fri, 19 Oct 2007 05:24:54 -0500
parents ddfe09d3cf86
children a76b55624e51
files src/audacious/output.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/output.c	Fri Oct 19 05:24:27 2007 -0500
+++ b/src/audacious/output.c	Fri Oct 19 05:24:54 2007 -0500
@@ -499,9 +499,14 @@
                 return;                        /* yes, so finish */
 
             /* else sleep for retry */
+#ifndef GDK_WINDOWING_QUARTZ
             g_mutex_lock(playback->pb_change_mutex);
             g_cond_timed_wait(playback->pb_change_cond, playback->pb_change_mutex, &pb_abs_time);
             g_mutex_unlock(playback->pb_change_mutex);
+#else
+            /* Darwin threading sucks. */
+            g_usleep(10000);
+#endif
         }
 
         if (ip_data.stop)