Commit d2845b70 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/block.c: win32 race condition fix.

parent 3a9390d6
...@@ -408,7 +408,10 @@ block_t *block_FifoGet( block_fifo_t *p_fifo ) ...@@ -408,7 +408,10 @@ block_t *block_FifoGet( block_fifo_t *p_fifo )
vlc_mutex_lock( &p_fifo->lock ); vlc_mutex_lock( &p_fifo->lock );
if( p_fifo->p_first == NULL ) /* We do a while here because there is a race condition in the
* win32 implementation of vlc_cond_wait() (We can't be sure the fifo
* hasn't been emptied again since we were signaled). */
while( p_fifo->p_first == NULL )
{ {
vlc_cond_wait( &p_fifo->wait, &p_fifo->lock ); vlc_cond_wait( &p_fifo->wait, &p_fifo->lock );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment