This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Make busy waiting loop in exceptions.cc (try_to_debug) less busy.
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 7 Feb 2003 10:02:30 -0500
- Subject: Re: Make busy waiting loop in exceptions.cc (try_to_debug) less busy.
- References: <20030207152049.N27816-100000@logout.sh.cvut.cz>
- Reply-to: cygwin-patches at cygwin dot com
On Fri, Feb 07, 2003 at 03:35:12PM +0100, Vaclav Haisman wrote:
>this patch makes busy waiting loop in try_to_debug less busy by lowering
>priority of current thread to idle and by giving up time slices with Sleep(0).
I'll apply something similar to this but the scenario of setting the
priority to idle and then doing a Sleep(0) doesn't do what I think you think
it does. :-)
Unfortunately, Sleep (0) gives back time slices to any other thread running
at idle priority. A Sleep(0) is better than nothing, though.
Thanks.
cgf
>2003-02-07 Vaclav Haisman <V.Haisman@sh.cvut.cz>
> * exceptions.cc (try_to_debug): Set priority of current thread to
> idle. Make busy waiting loop less busy.