nested gdk_threads_enter() hangs: linux/gcc vs. win32/mingw?



Hi,

I am using the same code on win32/mingw and linux/gcc, however, when I execute the code on linux, the 
programm hangs at the second (nested) call of gdk_threads_enter(), see below.

Am I doing something illegal to use nested calls of gdk_threads_enter()?
If not, is there a flag to allow/disallow nested calls I miss on linux?

Felix


f_create_label( /* ... */ ){

  gdk_threads_enter();   /* <--- 2. time: hangs on linux/gcc */

  /* ... */

  gdk_threads_leave();

}


f_add_label_to_parent()( /* ... */ ){

  gdk_threads_enter();   /* <---1. time entered */

  /* ... */

  f_create_label( /* ... */ );

  /* ... */

  gdk_threads_leave();
}


main(){

  gdk_threads_init();
  gtk_init();  

  /* ... */

  f_add_label_to_parent( /*... */ );

  /* (programm never reaches here) */

  gdk_threads_enter();
  gtk_main();
  gdk_threads_leave();

}



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