Re: Help: multithreaded GNOME app



On Mon, 1 Feb 1999, Sri Ramkrishna wrote:
> > I use pipes in all my multithreaded programs, mainly because select() is
> > the most convenient way to wait for an application event; and since Gtk+
> > provides a nice and easy-to-use event multiplexor system.

> Out of curiosity, could you have used a semaphore for monitoring the
> queue?  Or was that just way over the top?

Yes, but if you use semaphores you also have to devise some other
method by you wake up your app, which the semaphore is cleared.  (if I
understood his program correctly)

	Jeff






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