Re: gdk_threads_leave in gtk callback ?



Gus Koppel wrote:
[...]
BTW, can I use g_idle_add in non-main thread without locking ?


I am not sure. The documentation is not clear about this and I havn't
had the time to examine the sources of that yet. To be safe, you should
wrap a simple GStaticMutex lock around the call.

g_idle_add() is safe to use without declaring any special locks.

Cheers,
                  -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]