Memory pool manager interface.
More...
#include <IPoolManager.h>
Memory pool manager interface.
Definition at line 34 of file IPoolManager.h.
◆ ~IPoolManager()
Default virtual destructor.
◆ clear_pools()
virtual void clear_pools |
( |
| ) |
|
|
pure virtual |
Clears all pools managed by the pool manager.
- Precondition
- All pools must be unoccupied
Implemented in PoolManager.
◆ lock_pool()
Locks a pool for execution.
- Returns
- Locked pool that workload will be mapped on
Implemented in PoolManager.
◆ num_pools()
virtual size_t num_pools |
( |
| ) |
const |
|
pure virtual |
Returns the total number of pools managed by the pool manager.
- Returns
- Number of managed pools
Implemented in PoolManager.
◆ register_pool()
virtual void register_pool |
( |
std::unique_ptr< IMemoryPool > |
pool | ) |
|
|
pure virtual |
Register pool to be managed by the pool.
- Note
- Ownership of the pools is being transferred to the pool manager
- Parameters
-
[in] | pool | Pool to be managed |
Implemented in PoolManager.
◆ release_pool()
Releases a free pool from the managed pools.
- Returns
- The released pool in case a free pool existed else nullptr
Implemented in PoolManager.
◆ unlock_pool()
Releases memory pool.
- Parameters
-
[in] | pool | Memory pool to release |
Implemented in PoolManager.
The documentation for this class was generated from the following file: