Fix startup config access issues, init race

This commit is contained in:
Charles J. Cliffe
2015-07-08 18:54:52 -04:00
parent b762d4d118
commit f86950b334
5 changed files with 56 additions and 25 deletions
+7 -4
View File
@@ -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 {