X-Spam-Check-By: sourceware.org Message-ID: <46771623.57023E03@dessent.net> Date: Mon, 18 Jun 2007 16:32:51 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: -mwindows and hour glass References: <3224 DOT 66 DOT 75 DOT 158 DOT 4 DOT 1182205082 DOT squirrel AT www DOT wingert DOT org> <049d01c7b1fd$d8978780$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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/