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.

The man page for pthread_cond_wait would be a good place to start.

Roland




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