summaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 10:06:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 10:06:47 +0100
commitc56f572c1026a774bcec768821e64ac31354ceff (patch)
tree42119732d24b14f170921bcb5d376d3b27bc556b /src/OfdmGenerator.h
parent18276a5d2eac39b08caa2ce44e196e7a98f1a108 (diff)
downloaddabmod-c56f572c1026a774bcec768821e64ac31354ceff.tar.gz
dabmod-c56f572c1026a774bcec768821e64ac31354ceff.tar.bz2
dabmod-c56f572c1026a774bcec768821e64ac31354ceff.zip
Clear PAPRStats when config gets changed
Diffstat (limited to 'src/OfdmGenerator.h')
-rw-r--r--src/OfdmGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OfdmGenerator.h b/src/OfdmGenerator.h
index 8374cf9..cccccf5 100644
--- a/src/OfdmGenerator.h
+++ b/src/OfdmGenerator.h
@@ -37,6 +37,7 @@
#include <cstddef>
#include <vector>
#include <complex>
+#include <atomic>
typedef std::complex<float> complexf;
@@ -105,6 +106,7 @@ class OfdmGenerator : public ModCodec, public RemoteControllable
// Measure PAPR before and after CFR
PAPRStats myPaprBeforeCFR;
PAPRStats myPaprAfterCFR;
+ std::atomic<bool> myPaprClearRequest;
size_t myMERCalcIndex = 0;
std::deque<double> myMERs;