Boost logo

Boost :

From: scleary_at_[hidden]
Date: 2000-08-10 15:11:37

> As for the predicate to remove the while... I considered that a lot
> yesterday while thinking on this subject. The only problem I see is
> that you don't always have a predicate or while loop.

Right! Condition variables can also be used on their own. I've used them
in that way before. The example given by Jeremy was using CV's as a
monitor, not as CV's in their own right. I'd recommend leaving pthread CV's
largely as-is, but adding a Monitor class that wraps the while Predicate

The only problem with the classic Monitor is that it only supports one CV.
So maybe we could just add a function to CV's that take a Predicate & Mutex,
and act out that part of a Monitor -- that way, more advanced users can
quickly define MultiMonitors (Monitors that have multiple CV's).


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