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:
Joachim
2020-03-27 09:27:29 +01:00
parent 0284052fae
commit 8fdb3c7679
19 changed files with 14 additions and 8 deletions

View File

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