added getNumberOfCPUs() function

This commit is contained in:
Vadim Pisarevsky
2011-08-02 12:42:58 +00:00
parent 6be846aa52
commit f0b3cb1845
2 changed files with 45 additions and 0 deletions

View File

@@ -263,6 +263,9 @@ CV_EXPORTS_W int64 getCPUTickCount();
*/
CV_EXPORTS_W bool checkHardwareSupport(int feature);
//! returns the number of CPUs (including hyper-threading)
CV_EXPORTS_W int getNumberOfCPUs();
/*!
Allocates memory buffer