mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-07-15 15:24:29 -04:00
Fix startup config access issues, init race
This commit is contained in:
+7
-4
@@ -3,10 +3,11 @@
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/dir.h>
|
||||
#include <wx/filename.h>
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
|
||||
#include "DataTree.h"
|
||||
|
||||
|
||||
class DeviceConfig {
|
||||
public:
|
||||
DeviceConfig();
|
||||
@@ -32,9 +33,11 @@ public:
|
||||
|
||||
private:
|
||||
std::string deviceId;
|
||||
int ppm, directSampling;
|
||||
bool iqSwap;
|
||||
long long offset;
|
||||
std::mutex busy_lock;
|
||||
|
||||
std::atomic<int> ppm, directSampling;
|
||||
std::atomic<bool> iqSwap;
|
||||
std::atomic<long long> offset;
|
||||
};
|
||||
|
||||
class AppConfig {
|
||||
|
||||
Reference in New Issue
Block a user