Name

OfxThreadFunctionV1 — Typedef for functions passed to the multithreading suite

Synopsis

#include "ofxMultiThread.h" 
typedef OfxStatus(OfxThreadFunctionV1)(unsigned intthreadIndex,
 unsigned intthreadMax,
 void *customArg);
 

Arguments

  • threadIndex - unique index of this thread, will be between 0 and threadMax
  • threadMax - to total number of threads executing this function
  • customArg - the argument passed into OfxMultiThreadSuiteV1::multiThread

Description

Typedef for functions that are used to spawn SMP threads must have this function signature. Such functions are passed to OfxMultiThreadSuiteV1::multiThread.