Go to the source code of this file.
Namespaces | |
| namespace | cmtk |
| namespace | cmtk::Threads |
Thread-related utility functions and global configuration variables. | |
Functions | |
| void | cmtk::Threads::CheckEnvironment () |
| Check environment variables that control thread creation. | |
| bool | cmtk::Threads::Available () |
| Check whether this system supports threads. | |
| int | cmtk::Threads::GetNumberOfThreads () |
| Number of threads to run in parallel. | |
| int | cmtk::Threads::SetNumberOfThreads (const int numberOfThreads=0, const bool force=false) |
| Set the number of threads to run in parallel. | |
| int | cmtk::Threads::GetMaxThreads () |
| Return number of threads allowed per process on this system. | |
| int | cmtk::Threads::GetNumberOfProcessors () |
| Return number of processors currently online. | |
| void | cmtk::Threads::RunThreads (ThreadFunction threadCall, const unsigned numberOfThreads, void *const parameters, const size_t parameterSize) |
| Specialized but more hands-on thread scheduling function. | |
| template<class T > | |
| void | cmtk::Threads::RunThreads (ThreadFunction threadCall, const unsigned numberOfThreads, T *const parameters) |
| Generic thread scheduling function. | |
Variables | |
| int | cmtk::Threads::NumberOfThreads = 0 |
| (Maximum) number of threads to run in parallel. | |
1.7.2