mesa/src
Vinson Lee 31db310be4 os: Check for spurious wakeups in pipe_barrier_wait.
The POSIX function pthread_cond_wait can have spurious wakeups when
waiting on a condition variable.

Add a 64-bit counter that is incremented whenever the barrier becomes
full. A woken thread checks the counter. If the counter has not changed
then it has been spuriously woken and goes back to sleep. If the counter
has changed then it was properly signaled and exits the barrier.

Tested on Mac OS X.

This patch was based on ideas from Luca Barbieri.
2010-04-26 00:31:20 -07:00
..
driclient
egl Merge branch '7.8' 2010-04-19 20:22:48 -07:00
gallium os: Check for spurious wakeups in pipe_barrier_wait. 2010-04-26 00:31:20 -07:00
glew glew: Include X11 headers and libraries in SCons build. 2010-04-04 18:10:20 -07:00
glsl
glu
glut glut: Include X11 headers and libraries in SCons build. 2010-04-04 18:28:03 -07:00
glw
glx Merge branch '7.8' 2010-04-23 11:52:14 -07:00
mesa st_api: Remove st_module 2010-04-26 00:40:17 +01:00
Makefile
SConscript