Zhenya Yourlo <[EMAIL PROTECTED]> writes:

> I am having some trouble with GGI and event handling under the X target,
> that seems to be related to requiring some form of mutal exclusion
> between ggiEventRead() and ggiSetMode().

Definitly!
You can't call any other functions on the same visual while calling
ggiSetMode(). If you need to do something like this program does
you have to do the locking yourself, as we don't want to bloat
the general code for something most people don't require.

Actually LibGGI currently only guarantees inter-visual threadsafety,
meaning that you can have multiple threads opening and using one
visual each, but you can't have several threads using the same
visual (an exception is if you are drawing directly to a DirectBuffer,
then you can as many threads you like banging on it). LibGII is
intended to be fully threadsafe after giiMTInit() is called, but
it has not been well tested.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to