Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-08-21 15:06:20


Howard Hinnant wrote:

> http://home.twcny.rr.com/hinnant/cpp_extensions/concurrency_rationale.html
> Thank you for your time and comments.

1)
The document speaks about both:
a) mutex with public lock unlock and
b) moveable locks.

What does public lock unlock provide, that cannot be achieved with
moveable locks also?

2)
The example in Q2 uses a statically initialized mutex, but the reference
implementation shows the mutex has a ctor. How is this supposed to be
made thread-safe?

Roland aka speedsnail


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