__playerAvailable = false;
__playUtterance = nullptr;
+ __threadCond.notify_all();
+
tryToStopPlayer();
SLOG(LOG_INFO, tts_tag(), "[PlayerThread] Thread is stopped or waiting");
- __threadCond.notify_all();
__playerThread.join();
SLOG(LOG_INFO, tts_tag(), "[PlayerThread] Finish thread");
}
SLOG(LOG_INFO, tts_tag(), "[PlayerThread] Wait playing");
if (isThreadStopped()) {
__threadCond.wait(lock);
+ usleep(10000);
}
while (false == isThreadStopped()) {
__playUtterance(this, uid);
}
+ SLOG(LOG_INFO, tts_tag(), "[PlayerThread] notify stopCheckCond");
__stopCheckCond.notify_all();
}
}