bug-commoncpp
[Top][All Lists]
Advanced

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

Re: Bug in Win32 yield()


From: Federico Montesino Pouzols
Subject: Re: Bug in Win32 yield()
Date: Sun, 6 Oct 2002 21:25:14 +0200
User-agent: Mutt/1.4i

        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
>




reply via email to

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