
8 Jan
2010
8 Jan
'10
7:15 p.m.
"Rob Yull"
Using Boost 1.41, MSVC 2005, Win 7 x64 (compiling 32-bit).
I was trying to set a small delay in a loop, so the loop doesn't consume all of the processor, using boost::thread::sleep(). I tried using the example from the threading documentation (http://www.boost.org/doc/libs/1_41_0/doc/html/thread/time.html#thread.time. get_system_time):
boost::thread::sleep(boost::posix_time::milliseconds(25));
Did you want boost::this_thread::sleep ?