# HG changeset patch # User Tomasz Mon # Date 1242481303 -7200 # Node ID 1bb4cad5792375a37756a414659b067d0492842a # Parent 8106e1b311153461aa2154b32ce88a6adf30db82 alsa-ng: alsaplug_flush(): It is good practise to lock the same mutex as the waiting threads while calling g_cond_broadcast. diff -r 8106e1b31115 -r 1bb4cad57923 src/alsa-ng/alsa-core.c --- a/src/alsa-ng/alsa-core.c Fri May 15 16:12:30 2009 -0500 +++ b/src/alsa-ng/alsa-core.c Sat May 16 15:41:43 2009 +0200 @@ -281,8 +281,8 @@ /* make the request... */ g_mutex_lock(pcm_state_mutex); flush_request = time; + g_cond_broadcast(pcm_state_cond); g_mutex_unlock(pcm_state_mutex); - g_cond_broadcast(pcm_state_cond); /* ...then wait for the transaction to complete. */ g_mutex_lock(pcm_state_mutex);