Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Sat, 6 Aug 2005 09:16:15 +0200 (CEST)
From: Vaclav Haisman <V.Haisman@sh.cvut.cz>
Cc: cygwin@cygwin.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.P84746@logout.sh.cvut.cz> <42F4242C.1020707@byu.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.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@byu.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/

