diff --git a/inference-engine/thirdparty/movidius/mvnc/src/watchdog/watchdog.cpp b/inference-engine/thirdparty/movidius/mvnc/src/watchdog/watchdog.cpp index fb5afeb1bab..a1821c88846 100644 --- a/inference-engine/thirdparty/movidius/mvnc/src/watchdog/watchdog.cpp +++ b/inference-engine/thirdparty/movidius/mvnc/src/watchdog/watchdog.cpp @@ -110,9 +110,12 @@ WatchdogImpl::WatchdogImpl() { if (rc != 0) { throw std::runtime_error("failed to set condition variable clock. rc: " + std::to_string(rc)); } + + rc = pthread_cond_init(&wakeUpPingThread, &attr); +#else + rc = pthread_cond_init(&wakeUpPingThread, NULL); #endif // !(defined(__APPLE__) || defined(_WIN32)) - rc = pthread_cond_init(&wakeUpPingThread, NULL); if (rc != 0) { throw std::runtime_error("failed to initialize \"wakeUpPingThread\" condition variable. rc: " + std::to_string(rc)); }