What if the system time changes while I'm doing timed_wait with a duration?
问题 When using timed_wait on a boost::condition_variable with a duration, will the wait condition time out after the duration even if the user (or ntp) changes the system time? E.g., boost::posix_time::time_duration wait_duration(0, 0, 1, 0); // 1 sec // ** System time jumps back 15 minutes here. ** if( !signal.timed_wait(lock, wait_duration) ) { // Does this condition happen 1 second later, or about 15 minutes later? } 回答1: As of the date of writing (Nov 2013), if the wall-clock time changes