<div dir="ltr">If your code is threaded anyway, it's probably best to just have a separate thread for event handling. XCB is fully thread-safe, so you can mix calls to xcb_wait_for_event() in the event-handling thread with GUI drawing calls in another thread. This was actually the intent of the XCB architecture.<br></div><br><div class="gmail_quote">On Tue, May 19, 2015 at 3:53 AM Cosmin Apreutesei <<a href="mailto:cosmin.apreutesei@gmail.com">cosmin.apreutesei@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I need a little help:<br>
<br>
My app is waiting on a thread to finish. When the thread finishes its<br>
thing, I want to update the GUI. The GUI thread is blocking in<br>
xcb_wait_for_event().<br>
<br>
Is this possible with XCB?<br>
<br>
Thanks,<br>
Cosmin.<br>
<br>
<br>
PS: I posted this on stackoverflow if people prefer to take these<br>
things there instead:<br>
<a href="http://stackoverflow.com/questions/30323337/how-to-wake-up-the-gui-thread-in-xcb" target="_blank">http://stackoverflow.com/questions/30323337/how-to-wake-up-the-gui-thread-in-xcb</a><br>
_______________________________________________<br>
Xcb mailing list<br>
<a href="mailto:Xcb@lists.freedesktop.org" target="_blank">Xcb@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xcb" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xcb</a></blockquote></div>