Don't hold the xlib-xcb lock while sleeping: that allows deadlock.
authorJamey Sharp <jamey@minilop.net>
Sun, 28 Oct 2007 20:28:18 +0000 (13:28 -0700)
committerJamey Sharp <jamey@minilop.net>
Sun, 28 Oct 2007 20:28:18 +0000 (13:28 -0700)
commita29fbc2645fabb96d02c382ffef499b48fb1514a
tree6199cc21264249671a81531910800cee1b84b720
parentf6b75d6090dc40918196d2b902e9616d0199af42
Don't hold the xlib-xcb lock while sleeping: that allows deadlock.

With this patch, `ico -threads 2` runs without deadlock.

Many thanks to Christoph Pfister <christophpfister@gmail.com> for
pointing out the problem, providing detailed analyses, explaining it to
me repeatedly until I understood what was going on, and proposing and
reviewing possible solutions.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Acked-by: Christoph Pfister <christophpfister@gmail.com>
src/xcb_conn.c