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.

Change History (1)

comment:1 by Roland Schwarz, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=541730

This is not a bug of the library. The issue is recoginzed
and beeing discussed. Keyword: monotonic time. You might
read the mailing list discussions. Btw. pthread is not
different in this respect.
Note: See TracTickets for help on using tickets.