Even better thread and application termination:

- Now that timed-pop()/try_pop() prevent indefinite blocking it is best to flush() on thread stopping to unblock push()
- Reworked a bit the CubicSDR::OnExit() sequence, see comments.
This commit is contained in:
vsonnier
2017-06-01 19:56:33 +02:00
parent 8f608bbf5c
commit 3604b7f1ff
9 changed files with 59 additions and 36 deletions
+3
View File
@@ -76,6 +76,9 @@ void FFTVisualDataThread::run() {
wproc.run();
}
}
pipeIQDataIn->flush();
pipeFFTDataOut->flush();
// std::cout << "FFT visual data thread done." << std::endl;
}