client: wake-up threads on all return paths from read_events
authorMarek Chalupa <mchqwerty@gmail.com>
Wed, 10 Sep 2014 10:47:13 +0000 (12:47 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 11 Sep 2014 07:22:44 +0000 (10:22 +0300)
commita31a7360093dd5f4ce1a34b9889560fc37dbb7a9
treecc9e77a4a410e4a84e7ce65d3039a46ccb8a281b
parent65d02b7a83329ab5a65a0effde854baf8d5d2040
client: wake-up threads on all return paths from read_events

If wl_connection_read returned EAGAIN, we must wake up sleeping
threads. If we don't do this and the thread calling
wl_connection_read won't call wl_display_read_events again,
the sleeping threads will sleep indefinitely.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/wayland-client.c