mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-11 18:28:57 -04:00
TH_CLEAN_3: Use of non-blocking try_pop() when possible,
AudioThread concurrent access hardening and simplified, and misc.
This commit is contained in:
+2
-2
@@ -806,11 +806,11 @@ void AppFrame::OnMenu(wxCommandEvent& event) {
|
||||
#endif
|
||||
else if (event.GetId() == wxID_SDR_START_STOP) {
|
||||
if (!wxGetApp().getSDRThread()->isTerminated()) {
|
||||
wxGetApp().stopDevice(true);
|
||||
wxGetApp().stopDevice(true, 2000);
|
||||
} else {
|
||||
SDRDeviceInfo *dev = wxGetApp().getDevice();
|
||||
if (dev != nullptr) {
|
||||
wxGetApp().setDevice(dev);
|
||||
wxGetApp().setDevice(dev, 0);
|
||||
}
|
||||
}
|
||||
} else if (event.GetId() == wxID_LOW_PERF) {
|
||||
|
||||
Reference in New Issue
Block a user