|
Boost Users : |
Subject: Re: [Boost-users] Problem with boost::thread::sleep
From: Rob Yull (ryull_at_[hidden])
Date: 2010-01-08 14:28:42
Thank you, that worked. I should have read a little more, I just made the
assumption that this_thread::sleep and thread::sleep were basically the same
call.
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Chard
Sent: Friday, January 08, 2010 2:15 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Problem with boost::thread::sleep
"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 ?
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net