32#ifndef __SIMPLE_POOL_MANAGER_HH__
33#define __SIMPLE_POOL_MANAGER_HH__
39#include "params/SimplePoolManager.hh"
57 bool canAllocate(uint32_t numRegions, uint32_t size);
58 uint32_t
allocateRegion(
const uint32_t size, uint32_t *reservedPoolSize);
59 void freeRegion(uint32_t firstIdx, uint32_t lastIdx);
SimplePoolManager(const PoolManagerParams &p)
uint32_t allocateRegion(const uint32_t size, uint32_t *reservedPoolSize)
uint32_t minAllocatedElements(uint32_t size)
void freeRegion(uint32_t firstIdx, uint32_t lastIdx)
std::string printRegion()
bool canAllocate(uint32_t numRegions, uint32_t size)
uint32_t regionSize(std::pair< uint32_t, uint32_t > ®ion)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.