Boost logo

Boost :

From: Kowalke Oliver (QD IT PA AS) (Oliver.Kowalke_at_[hidden])
Date: 2008-01-25 03:43:02

nice that the read-/write-mutex facility will be available with boost-1.35!

I looked into the code and I've a question:
in the shared_mutex.hpp the default-ctor of shared_mutex does initialize in the ctor body instead using the initialisation list. Could you explain me why this way was choosen? (if I can remember correctly - Scott Meyers voted for using initialisation lists over assignment in ctors).

best regards,

> > will shared_mutex replace read_write_mutex?
> Yes.
> > Where can I reasd more about the usage of shared_mutex
> > (
> doesn't contain
> > an
> explanation)?
> It will be in the new docs when I get them finished. In the
> meantime, you can read Howard's papers presented to the C++
> Standards committee:
> html --- original proposal featuring shared_mutex
> html --- rational which includes shared_mutex discussion.
> Note that boost::shared_mutex currently includes the
> upgrade_mutex behaviour.
> Basically unique_lock<shared_mutex> will give you a write
> lock, shared_lock<shared_mutex> will give you a read lock,
> and upgrade_mutex<shared_mutex> will give you a read lock
> than you can upgrade by transferring ownership (with move) to
> a unique_lock<shared_mutex>.
> Anthony
> _______________________________________________
> Unsubscribe & other changes:

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