[Xcb] knowing when the X server will send the reply

Barton C Massey bart at cs.pdx.edu
Mon Jan 28 14:37:44 PST 2008

In message <Pine.LNX.4.64.0801282330200.21427 at grozny.maths.univ-evry.fr> you wrote:
> > As Jamey said, be careful.  XCB is already being pretty
> > clever about using select on the connection fd for its own
> > purposes; watch out for races!
> can those race conditions be of the same kind that can occur with events ? 
> (I'm not an expert at all of threads)

These races with the external world / OS may occur even in
single-threaded programs.  I can't come up with an easy
example offhand, and there may not be any.  I'm just saying
you'll have to think about it carefully, because this sort
of usage of XCB was not well thought out or tested.


More information about the Xcb mailing list