delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/26/17:05:15

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: New snapshot
26 Nov 1998 17:05:15 -0800 :
Message-ID: <19981126195412.B18444.cygnus.cygwin32.developers@cygnus.com>
References: <01BE193A DOT B6924770 AT sos>
Mime-Version: 1.0
To: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

On Thu, Nov 26, 1998 at 12:45:56PM -0500, Sergey Okhapkin wrote:
>Christopher Faylor wrote:
>> >Here is my temporary fix - peek a handle before checking for a signal.
>> 
>> Of course.  That makes sense.  That's not a temporary fix.  That's
>> the way it should be.
>> 
>
>That's not the way!
>
>time (ms)	 action
>
>0		 peek handle, no data present, wait for signal_arrived.
>1
>2
>3		 data ready. We are still sleepihg in WFSO.
>4
>5
>6
>7
>8
>9
>10		 WFSO completed, peek handle marks handle as ready.
>
>In this scenario we have 7ms of extra wait time :-(

Yep.  Uh huh.  It's called polling.  That is the way it was in the last
snapshot, too.

-chris

- Raw text -


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