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 kevent() were system calls... how can they
> not be thread safe?
Consider a kqueue() with a timeout--the calling process does
not get woken up until the timeout is completed.
Look at src/lib/libc_r/uthread/uthread_poll.c for something
similar to how a threaded kevent() could be implemented. I don't
think kqueue() would block.
--
|Chris Costello <[EMAIL PROTECTED]>
|If a group of N persons implements a COBOL compiler, there will be N-1
|passes. Someone in the group has to be the manager. -- T. Cheatham
`----------------------------------------------------------------------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message