Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-08-14 13:26:57


Ahh, thanks for bringing this up Dave! Member functions are a bad
habit... residual from years of OO training :)

David Abrahams writes:
> From: "William Kempf" <sirwillard_at_[hidden]>
>
> > As for the other issue, whether to put wait() in the CV or the lock,
> > I think Jeremy has a stronger argument here. I still think that
> > conceptually it makes more sense to say lock.wait(cv), but the
> > coupling is better with cv.wait(lock) and since pthreads are closer
> > to the latter I can live with it.
>
> Just to add another mind-expanding data point: I have a cross-platform IPC
> library (unsuitable for boost) which includes the ability to wait for
> incoming data on a pipe or a set of pipes. The wait() functions are at
> namespace scope. Please consider functions at namespace scope in lieu of
> member functions!
>
> -Dave


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