Boost logo

Boost :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2007-08-22 12:19:59

David Abrahams wrote:
> on Mon Aug 20 2007, Howard Hinnant <> 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).
> I find the fact that unique_lock can reference a mutex without owning
> the mutex's lock rather confusing in light of the semantics of
> unique_ptr. It seems like unique_lock is looking more like the
> old-old auto_ptr.

I agree.
If we remove the lock/try_lock/unlock from the locks, then I think it
can be fixed, and we get sizeof(unique_ptr)==sizeof(unique_lock).

Boost list run by bdawes at, gregod at, cpdaniel at, john at