1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

core: improve doc for setNumThreads

The old documentation implies that the call is only valid for the next parallel region and must be called again if addtional regions should be affected as well.
This commit is contained in:
Alexander Duda
2022-11-30 11:37:35 +01:00
committed by GitHub
parent e14ca39fd7
commit 2eb7bf4cfa
@@ -179,7 +179,7 @@ CV_EXPORTS ErrorCallback redirectError( ErrorCallback errCallback, void* userdat
CV_EXPORTS String tempfile( const char* suffix = 0);
CV_EXPORTS void glob(String pattern, std::vector<String>& result, bool recursive = false);
/** @brief OpenCV will try to set the number of threads for the next parallel region.
/** @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
sequentially. Passing threads \< 0 will reset threads number to system default. This function must