Re: multi-threaded apps.



Ian Campbell <ijc25@cam.ac.uk> writes: 
> Any clues/hints?
> 

Just hold the lock around GTK calls:

 gdk_threads_enter ();
 
 gtk_foo ();

 gtk_bar ();

 gdk_threads_leave ();

 my_own_app_function ();

 gdk_threads_enter ();
 
 gtk_blah ();

 gdk_threads_leave ();

In a callback, you can just access the GUI since the lock is already
held, right?

Havoc





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