[Xcb] use of xcb in a thread safe program

Barton C Massey bart at cs.pdx.edu
Mon May 21 09:45:03 PDT 2007


In message <Pine.LNX.4.64.0705200801310.25391 at grozny.maths.univ-evry.fr> you wrote:
> I do not know anything about threads (well, a bit :) ), so I would like to 
> know a bit more how I can use xcb with Gstreamer (or a any thread safe 
> lib). That is, even if xcb is thread safe, should I use mutex to lock (at 
> one step of the prog) or not ? Or can I use xcb like if threads didn't 
> exists (that is, as in a beautiful world :) ) ?

The latter.  It's one of the explicit XCB design goals.  You
may find bugs, since this hasn't been extensively tested,
but if you do we'll fix 'em.

    Bart


More information about the Xcb mailing list