Re: Help: multithreaded GNOME app
- From: Jeff Garzik <jgarzik pobox com>
- To: Sri Ramkrishna <sri aracnet com>
- cc: Jason Tackaberry <tack dok org>, gnome-list gnome org
- Subject: Re: Help: multithreaded GNOME app
- Date: Mon, 1 Feb 1999 16:47:38 -0500 (EST)
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]