Boost logo

Boost :

From: Jonathan Biggar (jon_at_[hidden])
Date: 2002-10-17 19:21:47

David Abrahams wrote:
> > It might be slightly confusing that one version of wait() (the
> > non-predicate form) will require the lock to be locked (as pointed
> > out already, otherwise you just can't safely check the predicate,
> > which is a prerequisite to calling wait()), while the
> > predicate-based form will not.
> There's still the unanswered question of why we have the
> non-predicated form at all, adorned as it is by warnings of "danger!"

Because sometimes the work required to organize the necessary test and
all of the data that it needs into a predicate class or function is
simply not worth the effort.

Jon Biggar
Floorboard Software

Boost list run by bdawes at, gregod at, cpdaniel at, john at