Boost logo

Boost :

Subject: Re: [boost] [interprocess] Timed locks
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-12-27 12:45:04


on Mon Dec 26 2011, Edward Diener <eldiener-AT-tropicsoft.com> wrote:

> In boost::inteprocess timed locks are specified by giving a
> boost::posix_time::ptime as the absolute time until which ownership is
> attempted. Would it not be more usable to give a
> boost::posix_time::time_duration from the time in which the one
> attempts to acquire the lock ?

Consistency with the C++11 standard threading would dictate providing
both interfaces (but using chrono instead of posix_time I think)

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk