From 718502c04b35f2677c39d68da4c00f5052e01d33 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Sat, 19 Sep 2020 17:15:33 +0200 Subject: [PATCH] added additional flag which casn be used to disable periodic handling --- datapoollocal/LocalPoolDataSetBase.cpp | 6 ++++-- datapoollocal/LocalPoolDataSetBase.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/datapoollocal/LocalPoolDataSetBase.cpp b/datapoollocal/LocalPoolDataSetBase.cpp index 6832005b..c280e7c7 100644 --- a/datapoollocal/LocalPoolDataSetBase.cpp +++ b/datapoollocal/LocalPoolDataSetBase.cpp @@ -8,7 +8,7 @@ LocalPoolDataSetBase::LocalPoolDataSetBase(HasLocalDataPoolIF *hkOwner, uint32_t setId, PoolVariableIF** registeredVariablesArray, - const size_t maxNumberOfVariables): + const size_t maxNumberOfVariables, bool noPeriodicHandling): PoolDataSetBase(registeredVariablesArray, maxNumberOfVariables) { if(hkOwner == nullptr) { // Configuration error. @@ -21,7 +21,9 @@ LocalPoolDataSetBase::LocalPoolDataSetBase(HasLocalDataPoolIF *hkOwner, this->sid.ownerSetId = setId; // Data creators get a periodic helper for periodic HK data generation. - periodicHelper = new PeriodicHousekeepingHelper(this); + if(not noPeriodicHandling) { + periodicHelper = new PeriodicHousekeepingHelper(this); + } } LocalPoolDataSetBase::LocalPoolDataSetBase(sid_t sid, diff --git a/datapoollocal/LocalPoolDataSetBase.h b/datapoollocal/LocalPoolDataSetBase.h index 1b58a211..83e0425c 100644 --- a/datapoollocal/LocalPoolDataSetBase.h +++ b/datapoollocal/LocalPoolDataSetBase.h @@ -45,7 +45,7 @@ public: */ LocalPoolDataSetBase(HasLocalDataPoolIF *hkOwner, uint32_t setId, PoolVariableIF** registeredVariablesArray, - const size_t maxNumberOfVariables); + const size_t maxNumberOfVariables, bool noPeriodicHandling = false); /** * @brief Constructor for users of local pool data.