Re: gdk_threads_leave in gtk callback ?
- From: Tristan Van Berkom <tvb gnome org>
- To: Gus Koppel <gtk spamkiller bytechase cx>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gdk_threads_leave in gtk callback ?
- Date: Mon, 03 Apr 2006 09:41:44 -0400
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]