From owner-freebsd-hackers Tue Jan 30 11:56:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sttlpop5.sttl.uswest.net (sttlpop5.sttl.uswest.net [206.81.192.5]) by hub.freebsd.org (Postfix) with SMTP id B49A337B6BF for ; Tue, 30 Jan 2001 11:56:03 -0800 (PST) Received: (qmail 6563 invoked by alias); 30 Jan 2001 19:56:03 -0000 Delivered-To: fixup-freebsd-hackers@freebsd.org@fixme Received: (qmail 6541 invoked by uid 0); 30 Jan 2001 19:56:02 -0000 Received: from www.a6l.net (HELO a6l.net) (63.229.13.49) by sttlpop5.sttl.uswest.net with SMTP; 30 Jan 2001 19:56:02 -0000 Received: (qmail 43133 invoked by uid 1002); 30 Jan 2001 19:56:22 -0000 To: "Jeff Roberson" Cc: "'Alfred Perlstein'" , "'freebsd-hackers@freebsd.org'" Subject: Re: Kevents/libc_r ? References: <31E4B6337A4FD411BD45000102472E0C05E74D@EMAIL_SERVER> From: Kevin Mills Date: 30 Jan 2001 11:56:22 -0800 In-Reply-To: "Jeff Roberson"'s message of "Tue, 30 Jan 2001 11:17:46 -0800" Message-ID: <85puh4stjt.fsf@diablo.in.a6l.net> Lines: 23 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Jeff Roberson" 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 [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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message