[Xcb] How to wake up the GUI thread in XCB?

Bart Massey bart at cs.pdx.edu
Tue May 19 07:07:41 PDT 2015


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.

On Tue, May 19, 2015 at 3:53 AM Cosmin Apreutesei <
cosmin.apreutesei at gmail.com> wrote:

> Hi,
>
> I need a little help:
>
> My app is waiting on a thread to finish. When the thread finishes its
> thing, I want to update the GUI. The GUI thread is blocking in
> xcb_wait_for_event().
>
> Is this possible with XCB?
>
> Thanks,
> Cosmin.
>
>
> PS: I posted this on stackoverflow if people prefer to take these
> things there instead:
>
> http://stackoverflow.com/questions/30323337/how-to-wake-up-the-gui-thread-in-xcb
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20150519/3fdc7a12/attachment.html>


More information about the Xcb mailing list