From 3ebb5d0e3ba1c91fc4eaf4820c3df7d5119e395c Mon Sep 17 00:00:00 2001 From: Dikay900 Date: Wed, 1 Jul 2015 22:55:12 +0200 Subject: [PATCH] export thread control to python aswell --- modules/core/include/opencv2/core/utility.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/include/opencv2/core/utility.hpp b/modules/core/include/opencv2/core/utility.hpp index 3ec066045..f0b473fac 100644 --- a/modules/core/include/opencv2/core/utility.hpp +++ b/modules/core/include/opencv2/core/utility.hpp @@ -201,7 +201,7 @@ framework: @param nthreads Number of threads used by OpenCV. @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. @@ -219,7 +219,7 @@ The exact meaning of return value depends on the threading framework used by Ope available for the process. @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 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 - `C=` – The index of the current parallel task. @sa setNumThreads, getNumThreads */ -CV_EXPORTS int getThreadNum(); +CV_EXPORTS_W int getThreadNum(); /** @brief Returns full configuration time cmake output.