Date: Thu, 27 Jul 2000 14:08:43 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: =?Windows-1252?Q?Nicolas_L=E9onard?= <nicolas.leonard@animaths.com> Cc: hackers@FreeBSD.ORG Subject: Re: kevent()/kqueue() in a multithreaded environment Message-ID: <Pine.BSF.4.21.0007271246160.56534-100000@resnet.uoregon.edu> In-Reply-To: <011b01bff6d4$778dbae0$0f0210ac@masa.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 jlemon@freebsd.org about it. Patches gladly accepted :) Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007271246160.56534-100000>