Boost logo

Boost Users :

Subject: Re: [Boost-users] Sleeping a Boost.thread for some Boost.date_time nanoseconds
From: Emer Rodriguez Formisano (emer_at_[hidden])
Date: 2011-07-11 08:54:57


Thanks for the answer, Jamie.

> You mean stuck? Take a look at this ticket:
> https://svn.boost.org/trac/boost/ticket/5034
Yes, sorry for the misspell and the poor description.

> If this is the problem you are seeing please add a comment.
It is not the same problem. My problems occurs when I set the
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG building option, then the
boost::this_thread::sleep does not work for any posix::time_duration.
The created thread uses all the CPU and it does not sleep nor process
the remaining instructions. If the preprocessor definition is removed,
the thread can sleep for any time period unless
boost::posix_time::nanoseconds.
The program uses some time_duration variables to store nanoseconds and
that makes the boost::this_thread::sleep not work.

-- 
Emer Rodríguez Formisano

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