client: Add an entry point for dispatching a queue without blocking
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 22 Nov 2012 13:34:48 +0000 (15:34 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Nov 2012 02:50:14 +0000 (21:50 -0500)
commitfb205078819380538e6c0793f10ce603d7368da3
tree0dc48985639a4cf66c288c4f93de7db55b13e995
parent0f5d41e3bbc2741c86b4c85f9f52b22cf35aa71b
client: Add an entry point for dispatching a queue without blocking

On the client side EGL, all the wl_buffer.release events need to be
processed before buffer allocation, otherwise a third buffer might
be allocated unnecessarily. However, the buffer allocation should
not block in the case no event was received. In order to do that, a
non-blocking queue dispatch function is needed.
src/wayland-client.c
src/wayland-client.h