Re: GTK deadlock in gtk_main
- From: "Tomas Soltys" <tomas soltys range-software com>
- To: Tadej Borovšak <tadeboro gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK deadlock in gtk_main
- Date: Tue, 3 Aug 2010 23:21:37 +0200 (CEST)
All right, so at the end it was my bug :)
Thank you all for your explanations.
Cheers,
Tomas
Hi.
So what you suggest is to have gdk_threads_enter and gdk_threads_leave
at
the beginning and at the end of the idle function?
Is this really intended?
Yes, this is how things should be done. But for your convenience, GDK
provides a function that will wrap your idle callback in lock/unlock:
gdk_threads_add_idle().
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]