Re: Help: multithreaded GNOME app



On Mon, 1 Feb 1999, Roland Dreier wrote:
> 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.

Sorry, brain cramp on this idea.  I didn't really think the problem
through; I just saw the part about not wanting to busy wait for a
condition and didn't realize that the thread needs to keep running.

My bad.

Roland




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