This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]