X-Spam-Check-By: sourceware.org
Message-ID: <46771623.57023E03@dessent.net>
Date: Mon, 18 Jun 2007 16:32:51 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: -mwindows and hour glass
References: <3224.66.75.158.4.1182205082.squirrel@www.wingert.org> <049d01c7b1fd$d8978780$2e08a8c0@CAM.ARTIMI.COM>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote:

> > Starting this from explorer results in a 5 second busy hour glass and (of
> > course), explorer is unresponsive until the program ends.
> 
>   Can't reproduce.  What version of 'doze are you using?  I get the
> hour-glass-with-arrow cursor for five seconds, but explorer still responds.

Same here, just a busy-arrow, no other hang.

I notice that if you call the Win32 version of Sleep() (capital S)
instead of Cygwin's sleep() there's no busy-arrow.  Also, a MinGW
version of the program doesn't show the busy-arrow either.

So there is something in particular about the Cygwin implementation of
sleep(), which is really just a wrapper around nanosleep(), which itself
really just calls cancelable_wait(), which in turn relies on
WaitForMultipleObjects() with a delay.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

