DragonFly bugs List (threaded) for 2004-04
Re: troubles with caps
On 29 Apr 2004 15:09:53 -0500
Dave Leimbach <leimySPAM2k@xxxxxxx> wrote:
> Chris Pressey <cpressey@xxxxxxxxxxxxxxx> writes:
> > On Sun, 25 Apr 2004 18:04:38 -0700 (PDT)
> > Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > I've been thinking about tying it into the file descriptor
> > > subsystem but there are issues related to programs fork()ing
> > > and closing all descriptors that makes it difficult for a libc
> > > implementation to properly deal with the fork.
> > This would be very, very handy, if for no other reason than quite a
> > bit of existing software, like GTK, makes the assumption that
> > select() is how you're going to wait on events.
> Hmm that seems like a problem with GTK.
Well - I think the design issue for the GTK implementors (and others)
is: what, besides select(), is a portable way to wait on events?
Anyway, pthreads should suffice for this problem ATM. One thread can be
GTK-event-bound while another is CAPS-bound, and they can exchange data.