Name

OfxMultiThreadSuiteV1::multiThreadNumCPUs — Function which indicates the number of CPUs available for SMP processing

Synopsis

#include "ofxMultiThread.h" 
OfxStatus(*multiThreadNumCPUs)(unsigned int *nCPUs);
 

Arguments

  • nCPUs -

Description

This value may be less than the actual number of CPUs on a machine, as the host may reserve other CPUs for itself.

Returns

  • kOfxStatOK, all was OK and the maximum number of threads is in nThreads.
  • kOfxStatFailed, the function failed to get the number of CPUs