llvmpipe: wake all threads waiting on a fence

This commit is contained in:
Keith Whitwell 2010-08-20 15:15:36 +01:00
parent b6e03eafe3
commit 1e926fe42a

View file

@ -146,7 +146,9 @@ lp_fence_signal(struct lp_fence *fence)
debug_printf("%s count=%u rank=%u\n", __FUNCTION__,
fence->count, fence->rank);
pipe_condvar_signal(fence->signalled);
/* Wakeup all threads waiting on the mutex:
*/
pipe_condvar_broadcast(fence->signalled);
pipe_mutex_unlock(fence->mutex);
}