Re: Threads
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: Olexiy Avramchenko <olexiy ctech cn ua>
- Cc: Russell Shaw <rjshaw netspace net au>, gtk-app-devel-list gnome org
- Subject: Re: Threads
- Date: Wed, 15 Dec 2004 12:18:03 -0500
On Wed, 15 Dec 2004 19:10:13 +0200, Olexiy Avramchenko <olexiy ctech cn ua>
[...]
No, all callbacks from GTK widgets run in the lock, so if you will try
to lock a global mutex in any signal handler you'll get nothing but
deadlock. In MT app you should protect timeout and idle callbacks only
(and, of course, the code from another threads that use any GTK/GDK
function or data).
Sorry, my bad ;-)
If a signal from a GtkWidget is being fired, then we must assume that
somewhere a gtk+ function is currently getting called, and that function
must be protected by the mutex.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]