Re: GTK deadlock in gtk_main
- From: Tadej BorovÅak <tadeboro gmail com>
- To: Tomas Soltys <tomas soltys range-software com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK deadlock in gtk_main
- Date: Tue, 3 Aug 2010 22:48:13 +0200
Hi.
You're having troubles because gtk_main_iteration_do() does it's own
unlock/lock cycle.
When your idle callback is executed, your mutex is unlocked.
gtk_main_iteration_do() "unlocks" it again, executes whatever is there
to be executed and locks it. Now control returns back to main loop,
which tries to lock mutex and here you have your lock.
Tadej
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]