Duplicator is worker that takes from one buffer, and copies the element to TWO outgoing buffers More...
Public Member Functions | |
Duplicator (IBuffer incoming, IBuffer outgoing1, IBuffer outgoing2) | |
Constructs an object of this class. More... | |
void | Run () |
Runs this object. Stops when it takes Producer.LastItem More... | |
Duplicator is worker that takes from one buffer, and copies the element to TWO outgoing buffers
Constructs an object of this class.
incoming | The buffer to take from |
outgoing1 | The first buffer to put into |
outgoing2 | The second buffer to put into |
void producerConsumer.Duplicator.Run | ( | ) |
Runs this object.
Stops when it takes Producer.LastItem