Producer Consumer
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | List of all members
producerConsumer.Duplicator Class Reference

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...
 

Detailed Description

Duplicator is worker that takes from one buffer, and copies the element to TWO outgoing buffers

Constructor & Destructor Documentation

producerConsumer.Duplicator.Duplicator ( IBuffer  incoming,
IBuffer  outgoing1,
IBuffer  outgoing2 
)

Constructs an object of this class.

Parameters
incomingThe buffer to take from
outgoing1The first buffer to put into
outgoing2The second buffer to put into

Member Function Documentation

void producerConsumer.Duplicator.Run ( )

Runs this object.
Stops when it takes Producer.LastItem


The documentation for this class was generated from the following file: