Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 28 Nov 2002 02:20:32 +0100
From: thomas <tom@huno.net>
Reply-To: thomas <cygwin@cygwin.com>
X-Priority: 3 (Normal)
Message-ID: <5549457171.20021128022032@huno.net>
To: Christopher Faylor <cygwin@cygwin.com>
Subject: Re: pipe performance problem
In-Reply-To: <20021128003443.GD21457@redhat.com>
References: <777770015.20021122040845@huno.net>
 <007301c291ff$eb9ce050$78d96f83@pomello> <21545718.20021122114035@huno.net>
 <12415481703.20021122220059@huno.net> <20021122210856.GA10679@redhat.com>
 <5.1.0.14.2.20021122143402.00fdc148@pop3.cris.com>
 <10824453046.20021123003030@huno.net> <14936170000.20021127223905@huno.net>
 <20021127233624.GK17798@redhat.com> <1245871093.20021128012046@huno.net>
 <20021128003443.GD21457@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christopher Faylor <cgf-cygwin@cygwin.com> wrote:

> On Thu, Nov 28, 2002 at 01:20:46AM +0100, thomas wrote:
>>Christopher Faylor <cgf-noreply@cygwin.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/

