Re: Help: multithreaded GNOME app



> Look into condition variables.  Basically, the gtk thread could sleep
> while waiting for the length of the queue to become more than 0.  Then any
> time another thread added something to the queue, it would wake up the
> sleeping gtk thread.

I don't think that will work because the gtk+ thread has to be able to handle X
events, and it can't do that if it's waiting on a condition variable.

Jason.



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