condvar fixes
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user