"Jeff Roberson" <[EMAIL PROTECTED]> writes:

> Is that true in -CURRENT as well?  It looks to me like it calls kevents with
> a 0 timespec and then calls into the scheduler.
> 
> > * Jeff Roberson <[EMAIL PROTECTED]> [010130 11:05] wrote:
> > > Does anyone know if it's safe to use kevents with pthreads yet?  I poked
> > > around and saw that it is handled in libc_r/uthread, but I also noticed
> that
> > > my process that should be waiting in kqread is actually waiting in poll.
> If
> > > I remove -pthread from the compile line it waits in kqread again!  Is
> > > pthreads just using poll for timeouts?
> > 
> > pthreads puts the kevent into the array of pollfds that it uses to
> > do non-blocking operations.

Wait a second here... what does this mean?  Am I reading that when using 
non-blocking sockets and kevent with -pthread I'm actually using poll?

Please explain - I'm trying to get away from poll!

Thank you!


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

Reply via email to