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. :-)
AFAIK kqueue hasn't been made threadsafe, you'll have to bug
[EMAIL PROTECTED] about it. Patches gladly accepted :)
Doug White | FreeBSD: The Power to Serve
[EMAIL PROTECTED] | www.FreeBSD.org
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message