delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/27/20:19:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <tom AT huno DOT net>
Reply-To: thomas <cygwin AT cygwin DOT com>
X-Priority: 3 (Normal)
Message-ID: <5549457171.20021128022032@huno.net>
To: Christopher Faylor <cygwin AT cygwin DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019