Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-08-22 09:55:28


on Mon Aug 20 2007, Howard Hinnant <howard.hinnant-AT-gmail.com> wrote:

> Here is a link to a reference implementation and a FAQ for mutexes,
> locks and condition variables I am currently anticipating proposing
> for C++ standardization (or subsequent TR).
>
> http://home.twcny.rr.com/hinnant/cpp_extensions/concurrency_rationale.html

FWIW, I don't like the name "accept_ownership," in part because the
try_to_lock case can also be seen as accepting ownership. I'd
actually prefer "prelocked," even though it's not grammatically
congruent with "try_to_lock" and "defer_lock." I like "deferred," but
I don't know how to do the same thing for "try_to_lock." Maybe

  immediate
  deferred
  prelocked

I like those. More declarative.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com

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