delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/06/03:16:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Sat, 6 Aug 2005 09:16:15 +0200 (CEST)
From: Vaclav Haisman <V DOT Haisman AT sh DOT cvut DOT cz>
Cc: cygwin AT cygwin DOT com
Subject: Re: What is the point of create_thread_and_wait()?
In-Reply-To: <42F4242C.1020707@byu.net>
Message-ID: <20050806091537.U84746@logout.sh.cvut.cz>
References: <20050805234708 DOT P84746 AT logout DOT sh DOT cvut DOT cz> <42F4242C DOT 1020707 AT byu DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Thanks, I thought there was something I was missing.

VH


On Fri, 5 Aug 2005, Eric Blake wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to Vaclav Haisman on 8/5/2005 4:10 PM:
> > What is the point of create_thread_and_wait() in fhandler_netdrive::exists()?
> > Or anywhere at all? Why spawning a thread at all when we have to wait for the
> > task to finish immediately after it is started? I really would like to know,
> > even though it is probably just lack of knowledge on my side.
>
> Windows has the (nasty) habit of blocking EVERYTHING in the current
> thread, including ctrl-c, when doing lengthy network tasks.  Spawning the
> blocking task to its own thread allows cygwin to still react to signals in
> the primary thread.  This threading code was added to fhandler_netdrive
> due to complaints at the difficulty in stopping a runaway 'ls -F //' on
> large domains when // was first made a directory; search the archives from
> earlier this year for more details.
>
> - --
> Life is short - so eat dessert first!
>
> Eric Blake             ebb9 AT byu DOT net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFC9CQr84KuGfSFAYARAumxAJ9RVgjCVEscsf9v+HHTc/n8BCkp9gCgtcA5
> kBIvfgmuBXAaLsc0ho/HK3k=
> =mrcX
> -----END PGP SIGNATURE-----
>
> --
> 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/
>

--
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/

- Raw text -


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