threads lock up desktop



Looking at the FAQ I should use the 
g_thread_init(NULL),gdk_threads_enter(),gdk_threads_leave();
mechanisms when writing a multithreaded app.

Now, I want to write a function that calls
gdk_threads_enter() and gdk_threads_leave() ,that function 
might be called from the mainloop or from another thread . 
Can I do that?

My entire desktop locks up when i call gdk_threads_enter() 
from the main loop...

--
NOS - Using Redhat and their 1.2.10-11 gtk+ version



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