Commit ca692b98 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #4168 from Dikay900:export_threadcontrol

parents f4cb8c0d 3ebb5d0e
...@@ -201,7 +201,7 @@ framework: ...@@ -201,7 +201,7 @@ framework:
@param nthreads Number of threads used by OpenCV. @param nthreads Number of threads used by OpenCV.
@sa getNumThreads, getThreadNum @sa getNumThreads, getThreadNum
*/ */
CV_EXPORTS void setNumThreads(int nthreads); CV_EXPORTS_W void setNumThreads(int nthreads);
/** @brief Returns the number of threads used by OpenCV for parallel regions. /** @brief Returns the number of threads used by OpenCV for parallel regions.
...@@ -219,7 +219,7 @@ The exact meaning of return value depends on the threading framework used by Ope ...@@ -219,7 +219,7 @@ The exact meaning of return value depends on the threading framework used by Ope
available for the process. available for the process.
@sa setNumThreads, getThreadNum @sa setNumThreads, getThreadNum
*/ */
CV_EXPORTS int getNumThreads(); CV_EXPORTS_W int getNumThreads();
/** @brief Returns the index of the currently executed thread within the current parallel region. Always /** @brief Returns the index of the currently executed thread within the current parallel region. Always
returns 0 if called outside of parallel region. returns 0 if called outside of parallel region.
...@@ -233,7 +233,7 @@ The exact meaning of return value depends on the threading framework used by Ope ...@@ -233,7 +233,7 @@ The exact meaning of return value depends on the threading framework used by Ope
- `C=` – The index of the current parallel task. - `C=` – The index of the current parallel task.
@sa setNumThreads, getNumThreads @sa setNumThreads, getNumThreads
*/ */
CV_EXPORTS int getThreadNum(); CV_EXPORTS_W int getThreadNum();
/** @brief Returns full configuration time cmake output. /** @brief Returns full configuration time cmake output.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment