bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in Win32 yield()


From: David Sugar
Subject: Re: Bug in Win32 yield()
Date: Sun, 6 Oct 2002 15:49:43 -0400 (EDT)

Yes, that is an ammusing optimization :)...

On Sun, 6 Oct 2002, Federico Montesino Pouzols wrote:

> 
>       Thanks. Fixed in CVS for next releases. Very curious
> optimization :)
> 
> On Wed, Sep 11, 2002 at 02:31:28PM -0400, Leonard Thornton wrote:
> >   void    Thread::yield(void)
> >   {
> >   #ifdef WIN32
> >   //      Thread::sleep(0);       <=======Currently
> >           Thread::sleep(1);       <=======Should be
> >   #else
> >   .
> >   .
> >   .
> >
> >   This resolves a known problem in Win32 where all Sleep(0) is compiled to a
> >   NOP rather than a processor yield.
> >
> >   Leonard Thornton
> >   Intelis, Inc.
> >   770.825.0032
> >   address@hidden _______________________________________________
> >   Bug-commoncpp mailing list address@hidden
> >   http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> >
> 
> 
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]