Always wake up readers after writing.
authorJamey Sharp <jamey@minilop.net>
Sun, 18 Apr 2010 00:59:11 +0000 (17:59 -0700)
committerJamey Sharp <jamey@minilop.net>
Sun, 18 Apr 2010 01:20:41 +0000 (18:20 -0700)
commitb0525e242368fffbc77ebb45293f34e80847e65a
tree3665cf5324cb6a0b88a99d79da850ce4aa7220d3
parenteff3851ba80c42b5b3ba240f7e9049d7b0fac6f0
Always wake up readers after writing.

Since writers must make sure they read as well, threads may have gone to
sleep waiting for the opportunity to read. The writer must wake up one
of those readers or the application can hang.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Josh Triplett <josh@freedesktop.org>
src/xcb_in.c
src/xcb_out.c
src/xcbint.h