id summary reporter owner description type status milestone component version severity resolution keywords cc
12728 BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC incompatible with timed_wait Roger Karis Anthony Williams "If BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC is defined, timed_wait functions wait much longer than expected.
To reproduce:
{{{
#define BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
#include
#include
int main(int argc, char** argv)
{
boost::condition_variable c;
boost::mutex m;
boost::unique_lock l(m);
boost::system_time const timeout = boost::get_system_time() + boost::posix_time::milliseconds(500);
c.timed_wait(l, timeout); // Waits for a long time
c.timed_wait(l, boost::posix_time::milliseconds(500)); // Waits for an equally long time
return 0;
}
}}}
These functions (along with other timed_ functions) are deprecated but are currently still allowed to be used in conjunction with BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC." Bugs closed To Be Determined thread Boost 1.63.0 Problem wontfix