mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-17 12:53:22 +08:00
Trying to add parallel for loops (with pthread)
- OpenCV lib compiled with PTHREADS_PF=ON - Copied and tested in esp32/examples/esp_opencv_tests/ - TODO: Problem while linking pthreads : undefined reference to `pthread_cond_signal`
This commit is contained in:
@ -942,7 +942,7 @@ int cv::getNumberOfCPUs(void)
|
||||
|
||||
#endif
|
||||
|
||||
// esp32 doesn't support sysconf call. FIXME: add support
|
||||
// esp32 doesn't support sysconf call. FIXME: add support? Return always 2 (only for ESP32D0WD)
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(ESP32)
|
||||
|
||||
static unsigned cpu_count_sysconf = (unsigned)sysconf( _SC_NPROCESSORS_ONLN );
|
||||
|
Reference in New Issue
Block a user