Mesa (master): llvmpipe: wake all threads waiting on a fence

Keith Whitwell keithw at kemper.freedesktop.org
Wed Aug 25 09:32:12 UTC 2010


Module: Mesa
Branch: master
Commit: 1e926fe42a9780fd5e6574df2014a75d4af1101d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e926fe42a9780fd5e6574df2014a75d4af1101d

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Aug 20 15:15:36 2010 +0100

llvmpipe: wake all threads waiting on a fence

---

 src/gallium/drivers/llvmpipe/lp_fence.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_fence.c b/src/gallium/drivers/llvmpipe/lp_fence.c
index 4d549b0..1f96dcd 100644
--- a/src/gallium/drivers/llvmpipe/lp_fence.c
+++ b/src/gallium/drivers/llvmpipe/lp_fence.c
@@ -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);
 }




More information about the mesa-commit mailing list