Functions for thread management. More...
Functions | |
| SIMD_API size_t | SimdGetThreadNumber (void) |
| Gets current global thread number configured for Simd Library parallel algorithms. More... | |
| SIMD_API void | SimdSetThreadNumber (size_t threadNumber) |
| Sets number of threads used by Simd Library to parallelize some algorithms. More... | |
Detailed Description
Functions for thread management.
Function Documentation
◆ SimdGetThreadNumber()
| size_t SimdGetThreadNumber | ( | void | ) |
Gets current global thread number configured for Simd Library parallel algorithms.
Returns the value set by SimdSetThreadNumber. By default this value is 1. When set, it is restricted to the range [1, std::thread::hardware_concurrency()].
- Returns
- current configured thread number.
◆ SimdSetThreadNumber()
| void SimdSetThreadNumber | ( | size_t | threadNumber | ) |
Sets number of threads used by Simd Library to parallelize some algorithms.
- Parameters
-
[in] threadNumber - a number of threads.