add spill option

This commit is contained in:
Robin Müller 2023-03-14 18:21:16 +01:00
parent b6b9d1d790
commit 40405fe6c7
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
#include "fsfw/FSFW.h"
PoolManager::PoolManager(object_id_t setObjectId, const LocalPoolConfig& localPoolConfig)
: LocalPool(setObjectId, localPoolConfig, true) {
PoolManager::PoolManager(object_id_t setObjectId, const LocalPoolConfig& localPoolConfig, bool spillToHigherPools)
: LocalPool(setObjectId, localPoolConfig, true, spillToHigherPools) {
mutex = MutexFactory::instance()->createMutex();
}

View File

@ -21,7 +21,7 @@
*/
class PoolManager : public LocalPool {
public:
PoolManager(object_id_t setObjectId, const LocalPoolConfig& poolConfig);
PoolManager(object_id_t setObjectId, const LocalPoolConfig& poolConfig, bool spillToHigherPools);
/**
* @brief In the PoolManager's destructor all allocated memory