condvar fixes

This commit is contained in:
2022-11-10 14:11:40 +03:00
parent 15a9d68a87
commit 4994d0bf66
3 changed files with 15 additions and 7 deletions

View File

@@ -278,9 +278,7 @@ bool _PITimerImp_Thread::startTimer(double interval_ms) {
bool _PITimerImp_Thread::stopTimer(bool wait) {
thread_.stop();
thread_.mutex().lock();
event.notifyAll();
thread_.mutex().unlock();
if (wait) return thread_.waitForFinish();
// if (wait)
// if (!thread_.waitForFinish(10))