$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Problem with boost::thread::sleep
From: Chard (boost_at_[hidden])
Date: 2010-01-08 14:15:13
"Rob Yull" <ryull_at_[hidden]> wrote in message
news:014601ca908c$1e15d950$5a418bf0$@com...
> 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 ?