Boost logo

Boost :

From: William Kempf (sirwillard_at_[hidden])
Date: 2000-09-14 10:17:57


--- In boost_at_[hidden], Levente Farkas <lfarkas_at_m...> wrote:
> William Kempf wrote:
> > > create the lock on the heap can't help here.
> >
> > And why not?
>
> since you can't protect a.next() in that way.

Why not?

(Hint: Remember that unsafe_lock<> will do exactly the same thing
that you've done in your example code and that it makes use of the
same interface that would be used for the heap based solution.)

Bill Kempf


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