Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-07-21 22:10:02


Vesa Karvonen wrote:
> From: "Aleksey Gurtovoy" <alexy_at_[hidden]>
> > Vesa Karvonen wrote:
> > > Personally, I have been using a class template 'locked',
> > > which is basically a handle to a lockable or guarded
> > > object/resource. It is similar to, but not the same as, the
> > > LockingPtr presented in
> > > http://www.cuj.com/experts/1902/alexandr.htm?topic=experts.
> > > The main implementation difference is that lockable only
> > > stores a single pointer.
>
> Actually, 'locked' doesn't use the volatile/const_cast<>
> thing either, which can be thought of as being even more
> significant. However, the basic intent behind 'locked',
> 'LockingPtr', and 'locking_ptr' is the same.

That's what I believe in too. Unfortunately, Andrei didn't seem to be
convinced about that, maybe because the whole discussion was too
overwhelmed.

Aleksey


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