llvmpipe: wake all threads waiting on a fence
authorKeith Whitwell <keithw@vmware.com>
Fri, 20 Aug 2010 14:15:36 +0000 (15:15 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 25 Aug 2010 09:29:27 +0000 (10:29 +0100)
src/gallium/drivers/llvmpipe/lp_fence.c

index 4d549b0..1f96dcd 100644 (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);
 }