Make xcb_take_socket keep flushing until idle
authorKeith Packard <keithp@keithp.com>
Thu, 1 Dec 2011 10:28:51 +0000 (10:28 +0000)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Jan 2012 16:49:02 +0000 (17:49 +0100)
commit9b4d6f30a339e2d18ebaea98149da81aba453216
treea0132ae75d48a994b6e9de513786a60932d1ef0b
parent5ceeaaa4294201b3f613c07f9ec610c0e5f673c7
Make xcb_take_socket keep flushing until idle

_xcb_out_flush_to will drop the iolock in pthread_cond_wait allowing
other threads to queue new requests. When this happened,
there would be requests queued for the socket after _xcb_out_flush_to
returned, and xcb_take_socket would throw an assert.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29875
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
src/xcb_out.c