Fix tsan reports. This does mean updating to C++11

This commit is contained in:
Chris Cannam
2021-05-12 11:12:02 +01:00
parent b7770c8832
commit 94d4467bfe
3 changed files with 17 additions and 19 deletions

View File

@@ -27,8 +27,7 @@
#include "StretcherImpl.h"
#include <set>
//#define EXPERIMENT 1
#include <atomic>
namespace RubberBand
{
@@ -124,11 +123,11 @@ public:
size_t chunkCount;
size_t inCount;
long inputSize; // set only after known (when data ended); -1 previously
std::atomic<int64_t> inputSize; // set only after known (when data ended); -1 previously
size_t outCount;
bool draining;
bool outputComplete;
std::atomic<bool> draining;
std::atomic<bool> outputComplete;
FFT *fft;
std::map<size_t, FFT *> ffts;