Re: GTK deadlock in gtk_main



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]