ready to test

This commit is contained in:
2022-11-01 09:17:24 +03:00
parent 6e81a419fb
commit 591c92b4bb
10 changed files with 61 additions and 29 deletions

View File

@@ -132,6 +132,7 @@ PIIODevice::PIIODevice(const PIString & path, PIIODevice::DeviceMode mode): PIOb
PIIODevice::~PIIODevice() {
stop();
waitThreadedReadFinished();
}
@@ -213,11 +214,12 @@ void PIIODevice::stopThreadedRead() {
#ifdef MICRO_PIP
read_thread.stop();
#else
read_thread.stop();
read_thread.interrupt();
stopThreadedReadDevice();
if (reading_now) {
read_thread.terminate();
reading_now = false;
} else {
read_thread.stop();
}
#endif
}