Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-01-31 10:54:07

On Thu, 31 Jan 2002, bill_kempf wrote:
willia> Making lock() operations easily accessible is likely to lead to
willia> newbie mistakes. Not exposing them at all makes it
willia> difficult/impossible to extend the library, such as with a lock_ptr<>
willia> concept.

Whatever mechanism we decide on, the name should indicate the fact that
newbies shouldn't use it. For example, mutex_access_private might be a
good name.

How about make this a wrapper class with member functions that forward to
the real mutex, and this wrapper class is declared as a friend by all the
real mutex classes.


 Jeremy Siek
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster ( office phone: (812) 855-3608

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