send method
void
send(
- I input
send an input to be processed
Args
input
: an input to be sent to the function being run within theProcessorPool
Returns
- None
Errors
- None
Implementation
void send(I input) {
// send input to Processor at _currentProcessorIndex
_pool[_currentProcessorIndex].send(input);
// increment _currentProcessorIndex
_currentProcessorIndex += 1;
_currentProcessorIndex %= _pool.length;
// update input-output delta
_inOutDelta += 1;
}