PIIODevice threaded read refactoring

This commit is contained in:
2022-10-23 16:02:09 +03:00
parent e5777dde6c
commit 9438ab4e53
9 changed files with 157 additions and 121 deletions

View File

@@ -436,7 +436,7 @@ ssize_t PIBinaryLog::writeDevice(const void * data, ssize_t size) {
void PIBinaryLog::restart() {
bool th = isRunning();
bool th = isThreadedRead();
if (th) stopThreadedRead();
if (!canRead()) return;
logmutex.unlock();