Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2004-09-29 06:31:44


Ben Hutchings wrote:
[...]
> > > Having said all that, I feel the naming of functions may give a
> > > false sense of generality and encapsulation when they actually
> > > only work in the way they are being used currently.
> >
> > You mean that
> >
> > bool expired() {
> > return lock();

I meant !lock();

> > }
> >
> > is better?
>
> Not really.

I mean that current expired() doesn't synchronize the local view
of counter and hence may never return true (absent some user's
synchronization). If I were maintainer, I'd probably strengthen
it... for the sake of saving bandwidth trying to explain it. ;-)

regards,
alexander.


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