> > 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 sentence.
> 
> I thought kqueue() and kevent() were system calls... how can they
> not be thread safe?

I think there is a mis-communication here.  They are thread 'safe', but
if called, they block out all other 'threads' from running, so using
kqueue doesn't allow for multiple threads to run 'concurrently'.

In other words, a wrapper needs to be written so it can work in a
'threaded' environment effeciently.


Nate


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to