mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
use mutex, not cv
This commit is contained in:
parent
c27dd446eb
commit
e9c5b86003
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ protected:
|
||||||
const unsigned long DEVICE_CHECK_INTERVAL_MSECS = 2 * 1000;
|
const unsigned long DEVICE_CHECK_INTERVAL_MSECS = 2 * 1000;
|
||||||
QThread::msleep(DEVICE_CHECK_INTERVAL_MSECS);
|
QThread::msleep(DEVICE_CHECK_INTERVAL_MSECS);
|
||||||
}
|
}
|
||||||
std::lock_guard<std::mutex> lock(_joinCondition);
|
std::lock_guard<std::mutex> lock(_joinMutex);
|
||||||
_isRunning = false;
|
_isRunning = false;
|
||||||
_joinCondition.notify_one();
|
_joinCondition.notify_one();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue