TuttleOFX
1
|
Multi thread namespace. More...
Data Structures | |
class | Processor |
Class that wraps up SMP multi-processing. More... | |
class | Mutex |
An OFX mutex. More... | |
class | AutoMutex |
Functions | |
bool | isSpawnedThread (void) |
Has the current thread been spawned from an MP. | |
unsigned int | getNumCPUs (void) |
The number of CPUs that can be used for MP-ing. | |
unsigned int | getThreadIndex (void) |
The index of the current thread. From 0 to numCPUs() - 1. |
Multi thread namespace.
unsigned int OFX::MultiThread::getNumCPUs | ( | void | ) |
The number of CPUs that can be used for MP-ing.
Definition at line 104 of file ofxsMultiThread.cpp.
References OFX::Private::gThreadSuite, kOfxStatOK, and OfxMultiThreadSuiteV1::multiThreadNumCPUs.
Referenced by OFX::MultiThread::Processor::multiThread().
unsigned int OFX::MultiThread::getThreadIndex | ( | void | ) |
The index of the current thread. From 0 to numCPUs() - 1.
Definition at line 115 of file ofxsMultiThread.cpp.
References OFX::Private::gThreadSuite, kOfxStatOK, and OfxMultiThreadSuiteV1::multiThreadIndex.
bool OFX::MultiThread::isSpawnedThread | ( | void | ) |
Has the current thread been spawned from an MP.
Definition at line 96 of file ofxsMultiThread.cpp.
References OFX::Private::gThreadSuite, and OfxMultiThreadSuiteV1::multiThreadIsSpawnedThread.