delorie.com/archives/browse.cgi | search |
Christopher Faylor <cgf-cygwin AT cygwin DOT com> wrote: > On Thu, Nov 28, 2002 at 01:20:46AM +0100, thomas wrote: >>Christopher Faylor <cgf-noreply AT cygwin DOT com> wrote: >> >>> If there is no data in a pipe it can wait for 10ms waiting for it, yes. >>> See ready_for_read/peek_pipe in select.cc. >> >>Yep i saw the Sleep (10) and though the same thing, but i figured that >>can't be it when i commented it out, compiled a new cygwin1.dll and the >>10ms delay was still there. > It's not a Sleep 10. It's a WaitForSingleObject in ready_for_read. Yep you are right. It waits, here: if (WaitForSingleObject (signal_arrived, avail ? 0 : 10) == WAIT_OBJECT_0) now is to find out why. i will post again :) thomas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |