id summary reporter owner description type status milestone component version severity resolution keywords cc
6787 boost::thread::sleep() hangs if system time is rolled back Artem Gayardo-Matrosov viboes "Steps to reproduce:
1. Compile and run the following code
{{{#!cpp
int i = 0;
while(true)
{
printf(""%d\n"", ++i);
boost::this_thread::sleep( boost::posix_time::milliseconds(1000));
}
}}}
2. While it runs, rewind the system time by 1 hour back.
Expected result:
The code continues to print every second.
Actual result:
The code stops printing anything. I doesn't continue even after I've put the time back to current." Bugs closed Boost 1.65.0 thread Boost 1.49.0 Problem fixed