Opened 17 years ago
Closed 16 years ago
#601 closed Bugs (None)
condition::timed_wait doesnt take amount of time to wait
Reported by: | nobody | Owned by: | Roland Schwarz |
---|---|---|---|
Milestone: | Component: | threads | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
The timed wait method of boost::condition class allows waiting till the time specified in the argument. It does not allow waiting up to specific duration of time. That is, one cant say following: boost::condition condVar; condVar.timed_wait( ..., seconds(10) ); On some platforms waiting till the specified time is not the best idea. An example is Windows. A timed_wait can be called to wait till time 10 seconds ahead of current time. But then system clock is rolled back by 3 hours and variable will wait through those 3 hours.
Note:
See TracTickets
for help on using tickets.