Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::interprocess::interprocess_semaphore::timed_wait - how to do a relative wait
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-02-15 11:44:53


El 14/02/2011 23:41, Jean-Sebastien Stoezel escribió:
> How can I do this? I guess I could also use a deadline timer (ASIO).

It's not supported. POSIX also specifies that how discontinuities should
be treated on condition variables:

"For cases when the system clock is advanced discontinuously by an
operator, it is expected that implementations process any timed wait
expiring at an intervening time as if that time had actually occurred."

For windows, relative timeouts might be easy to implement, but not in POSIX.

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net