send method

void send(
  1. I input
)

send an input to be processed

Args

  • input: an input to be sent to the function being run within the ProcessorPool

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;
}