@@ -200,13 +200,13 @@ be called outside of parallel region.
200
200
201
201
OpenCV will try to run it's functions with specified threads number, but some behaviour differs from
202
202
framework:
203
- - `TBB` – User-defined parallel constructions will run with the same threads number, if
203
+ - `TBB` - User-defined parallel constructions will run with the same threads number, if
204
204
another does not specified. If later on user creates own scheduler, OpenCV will use it.
205
- - `OpenMP` – No special defined behaviour.
206
- - `Concurrency` – If threads == 1, OpenCV will disable threading optimizations and run it's
205
+ - `OpenMP` - No special defined behaviour.
206
+ - `Concurrency` - If threads == 1, OpenCV will disable threading optimizations and run it's
207
207
functions sequentially.
208
- - `GCD` – Supports only values \<= 0.
209
- - `C=` – No special defined behaviour.
208
+ - `GCD` - Supports only values \<= 0.
209
+ - `C=` - No special defined behaviour.
210
210
@param nthreads Number of threads used by OpenCV.
211
211
@sa getNumThreads, getThreadNum
212
212
*/
@@ -217,13 +217,13 @@ CV_EXPORTS_W void setNumThreads(int nthreads);
217
217
Always returns 1 if OpenCV is built without threading support.
218
218
219
219
The exact meaning of return value depends on the threading framework used by OpenCV library:
220
- - `TBB` – The number of threads, that OpenCV will try to use for parallel regions. If there is
220
+ - `TBB` - The number of threads, that OpenCV will try to use for parallel regions. If there is
221
221
any tbb::thread_scheduler_init in user code conflicting with OpenCV, then function returns
222
222
default number of threads used by TBB library.
223
- - `OpenMP` – An upper bound on the number of threads that could be used to form a new team.
224
- - `Concurrency` – The number of threads, that OpenCV will try to use for parallel regions.
225
- - `GCD` – Unsupported; returns the GCD thread pool limit (512) for compatibility.
226
- - `C=` – The number of threads, that OpenCV will try to use for parallel regions, if before
223
+ - `OpenMP` - An upper bound on the number of threads that could be used to form a new team.
224
+ - `Concurrency` - The number of threads, that OpenCV will try to use for parallel regions.
225
+ - `GCD` - Unsupported; returns the GCD thread pool limit (512) for compatibility.
226
+ - `C=` - The number of threads, that OpenCV will try to use for parallel regions, if before
227
227
called setNumThreads with threads \> 0, otherwise returns the number of logical CPUs,
228
228
available for the process.
229
229
@sa setNumThreads, getThreadNum
@@ -234,12 +234,12 @@ CV_EXPORTS_W int getNumThreads();
234
234
returns 0 if called outside of parallel region.
235
235
236
236
The exact meaning of return value depends on the threading framework used by OpenCV library:
237
- - `TBB` – Unsupported with current 4.1 TBB release. Maybe will be supported in future.
238
- - `OpenMP` – The thread number, within the current team, of the calling thread.
239
- - `Concurrency` – An ID for the virtual processor that the current context is executing on (0
237
+ - `TBB` - Unsupported with current 4.1 TBB release. Maybe will be supported in future.
238
+ - `OpenMP` - The thread number, within the current team, of the calling thread.
239
+ - `Concurrency` - An ID for the virtual processor that the current context is executing on (0
240
240
for master thread and unique number for others, but not necessary 1,2,3,...).
241
- - `GCD` – System calling thread's ID. Never returns 0 inside parallel region.
242
- - `C=` – The index of the current parallel task.
241
+ - `GCD` - System calling thread's ID. Never returns 0 inside parallel region.
242
+ - `C=` - The index of the current parallel task.
243
243
@sa setNumThreads, getNumThreads
244
244
*/
245
245
CV_EXPORTS_W int getThreadNum ();
0 commit comments