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>
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.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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