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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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