ready to test
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user