Make busy waiting loop in exceptions.cc (try_to_debug) less busy.

Christopher Faylor cgf@redhat.com
Fri Feb 7 15:01:00 GMT 2003


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.



More information about the Cygwin-patches mailing list