bug-commoncpp
[Top][All Lists]
Advanced

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

Bug in Win32 yield()


From: Leonard Thornton
Subject: Bug in Win32 yield()
Date: Wed, 11 Sep 2002 14:31:28 -0400

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


reply via email to

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