[Xcb] How to wake up the GUI thread in XCB?
Uli Schlachter
psychon at znc.in
Tue May 19 12:42:50 PDT 2015
Hi,
Am 19.05.2015 um 12:51 schrieb Cosmin Apreutesei:
> 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().
Qt has the same problem and it solves it by causing an event to be generated
(function QXcbConnection::sendConnectionEvent):
https://github.com/qtproject/qtbase/blob/dev/src/plugins/platforms/xcb/qxcbconnection.cpp#L1268
Cheers,
Uli
--
- He made himself, me nothing, you nothing out of the dust
- Er machte sich mir nichts, dir nichts aus dem Staub
More information about the Xcb
mailing list