mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-25 04:53:17 -04:00
Static analysis related fixes
This commit is contained in:
@@ -20,11 +20,13 @@ AudioThread::AudioThread() : IOThread(),
|
||||
outputDevice.store(-1);
|
||||
gain.store(1.0);
|
||||
|
||||
boundThreads.store(new std::vector<AudioThread *>);
|
||||
vBoundThreads = new std::vector<AudioThread *>;
|
||||
boundThreads.store(vBoundThreads);
|
||||
}
|
||||
|
||||
AudioThread::~AudioThread() {
|
||||
delete boundThreads.load();
|
||||
boundThreads.store(nullptr);
|
||||
delete vBoundThreads;
|
||||
}
|
||||
|
||||
void AudioThread::bindThread(AudioThread *other) {
|
||||
|
||||
@@ -100,5 +100,6 @@ public:
|
||||
static void deviceCleanup();
|
||||
static void setDeviceSampleRate(int deviceId, int sampleRate);
|
||||
std::atomic<std::vector<AudioThread *> *> boundThreads;
|
||||
std::vector<AudioThread *> *vBoundThreads;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user