gdk_threads_enter() hangs




Greetings,

I'm having some strange behaviour. I am writing a threaded Gnome app and it seems to be hanging when I call gdk_threads_enter(). Here's the code snippet where it hangs up:

printf("gdk_threads_enter()\n");
                gdk_threads_enter();
printf("gdk_threads_enter() returned\n");


The output is (as you might guess):

gdk_threads_enter()


The second printf is never executed. I've been over all my various gdk_threads_enter()/gdk_threads_leave() pairs to make sure I'm not locking GDK and then not unlocking it. It seems to me to be fine. All the protected areas are very short, i.e. 1 or 2 lines of code, and the protected code is all just calls to gtk stuff. I'm not doing any I/O inside of a protected area. Any thoughts on this?


Thanks in advance,
FM







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]