On Thu, 27 Jul 2000, Doug White wrote:
> On Wed, 26 Jul 2000, [Windows-1252] Nicolas L�onard wrote:
>
> > I'm trying to use the new kqueue()/kevent() syscalls in the last
> > snapshot of FreeBSD 5.0.
> > It works perfectly, except when I'm trying to use it in a multi-
> > threaded program.
> > The call of kevent() by my network thread blocks the other thread.
> >
> > I look in the libc_r sources and I found that this syscall isn't
> > already wrapped.
> >
> > Does anybody know if there is a patch or another tips to make it
> > work ?
>
> You normally wouldn't mix kqueue and threads; you'd use kqueue to
> *implement* threads. :-)
Right. This is what we did for poll() -- wrapped it and used it
to implement our libc_r threads. We could probably change libc_r's
internal use of poll() to kqueue(), but I'm not sure we want to
be beating a dead horse when a better threading solution is on
the horizon.
--
Dan Eischen
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message