mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Extended setNumThreads documentation according to code review.
This commit is contained in:
parent
2eb7bf4cfa
commit
3bcc3e70f1
@ -181,9 +181,9 @@ CV_EXPORTS void glob(String pattern, std::vector<String>& result, bool recursive
|
|||||||
|
|
||||||
/** @brief OpenCV will try to set the number of threads for subsequent parallel regions.
|
/** @brief OpenCV will try to set the number of threads for subsequent parallel regions.
|
||||||
|
|
||||||
If threads == 0, OpenCV will disable threading optimizations and run all it's functions
|
If threads == 1, OpenCV will disable threading optimizations and run all it's functions
|
||||||
sequentially. Passing threads \< 0 will reset threads number to system default. This function must
|
sequentially. Passing threads \< 0 will reset threads number to system default.
|
||||||
be called outside of parallel region.
|
The function is not thread-safe. It must not be called in parallel region or concurrent threads.
|
||||||
|
|
||||||
OpenCV will try to run its functions with specified threads number, but some behaviour differs from
|
OpenCV will try to run its functions with specified threads number, but some behaviour differs from
|
||||||
framework:
|
framework:
|
||||||
|
Loading…
Reference in New Issue
Block a user