Re: kevent()/kqueue() in a multithreaded environment

2000-07-28 Thread Nate Williams
> > 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 :) > > I may be just being stupid but I don't understand that last sente

Re: kevent()/kqueue() in a multithreaded environment

2000-07-28 Thread Chris Costello
On Friday, July 28, 2000, Archie Cobbs wrote: > Doug White writes: > > AFAIK kqueue hasn't been made threadsafe, you'll have to bug > > [EMAIL PROTECTED] about it. Patches gladly accepted :) > > I may be just being stupid but I don't understand that last sentence. > > I thought kqueue() and keve

Re: kevent()/kqueue() in a multithreaded environment

2000-07-28 Thread Daniel Eischen
On Fri, 28 Jul 2000, Archie Cobbs wrote: > Doug White writes: > > 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 :) > > I m

Re: kevent()/kqueue() in a multithreaded environment

2000-07-28 Thread Archie Cobbs
Doug White writes: > 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 :) I may be just being stupid but I don't understand that last

Re: kevent()/kqueue() in a multithreaded environment

2000-07-27 Thread Daniel Eischen
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. > > T

Re: kevent()/kqueue() in a multithreaded environment

2000-07-27 Thread Doug White
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 o

kevent()/kqueue() in a multithreaded environment

2000-07-27 Thread Nicolas Léonard
Hello 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 thi