Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 28 Nov 2002 02:20:32 +0100 From: thomas Reply-To: thomas X-Priority: 3 (Normal) Message-ID: <5549457171.20021128022032@huno.net> To: Christopher Faylor Subject: Re: pipe performance problem In-Reply-To: <20021128003443.GD21457@redhat.com> References: <777770015 DOT 20021122040845 AT huno DOT net> <007301c291ff$eb9ce050$78d96f83 AT pomello> <21545718 DOT 20021122114035 AT huno DOT net> <12415481703 DOT 20021122220059 AT huno DOT net> <20021122210856 DOT GA10679 AT redhat DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20021122143402 DOT 00fdc148 AT pop3 DOT cris DOT com> <10824453046 DOT 20021123003030 AT huno DOT net> <14936170000 DOT 20021127223905 AT huno DOT net> <20021127233624 DOT GK17798 AT redhat DOT com> <1245871093 DOT 20021128012046 AT huno DOT net> <20021128003443 DOT GD21457 AT redhat DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Christopher Faylor wrote: > On Thu, Nov 28, 2002 at 01:20:46AM +0100, thomas wrote: >>Christopher Faylor 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/