| 163 | } |
| 164 | |
| 165 | GenericDataSaver::~GenericDataSaver() |
| 166 | { |
| 167 | this->workerThread.quit(); |
| 168 | this->workerThread.wait(); |
| 169 | |
| 170 | if (this->writer->canWrite()) { |
| 171 | QMutexLocker locker(&this->dataMutex); |
| 172 | this->writer->close(); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // Protected by mutex |
| 177 | void |