Boost logo

Boost Users :

From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2008-08-07 15:19:14


On Wed, Aug 06, 2008 at 10:53:43AM +0200, Ruediger Berlich wrote:
>
> will be. In the middle of this sits a broker, which takes care of all
> communication between producers and consumers. Both need to register with
> the broker before being able to communicate with each other.
>
Having a single broker for all communication between producers and consumers
defeats the point of having threads. Eventually, the broker will become the
bottleneck (serialization point). Or did I misunderstand the first sentence?

>
> has been registered (they are started by the broker). Hence I need to have
> a mechanism that blocks all consumers that have been registered before the
> first producer, until such time that the first items to be processed are
> available.
>
Condition variable?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net