Hi:

I'm using boost::interprocess::interprocess_semaphore::timed_wait and boost::interprocess::message_queue::timed_received. I have to specify an absolute time to give up waiting/receiving.

This works in most cases, except my application sometimes needs to adjust the PC clock. If the PC clock is adjusted backwards in time, then these function wait longer than they should (since the end time is fixed in the future).

Ideally I would like to provide an absolute time instead, which would be independent of the time of day? The API doesn't seem to allow this.

How can I do this? I guess I could also use a deadline timer (ASIO).

Any help on this would be appreciated.

Thanks,
Jean