23.08
|
#include <PoolManager.h>
Public Member Functions | |
PoolManager () | |
Default Constructor. More... | |
PoolManager (const PoolManager &)=delete | |
Prevent instances of this class to be copy constructed. More... | |
PoolManager & | operator= (const PoolManager &)=delete |
Prevent instances of this class to be copied. More... | |
PoolManager (PoolManager &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
PoolManager & | operator= (PoolManager &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
IMemoryPool * | lock_pool () override |
Locks a pool for execution. More... | |
void | unlock_pool (IMemoryPool *pool) override |
Releases memory pool. More... | |
void | register_pool (std::unique_ptr< IMemoryPool > pool) override |
Register pool to be managed by the pool. More... | |
std::unique_ptr< IMemoryPool > | release_pool () override |
Releases a free pool from the managed pools. More... | |
void | clear_pools () override |
Clears all pools managed by the pool manager. More... | |
size_t | num_pools () const override |
Returns the total number of pools managed by the pool manager. More... | |
![]() | |
virtual | ~IPoolManager ()=default |
Default virtual destructor. More... | |
Memory pool manager.
Definition at line 41 of file PoolManager.h.
PoolManager | ( | ) |
Default Constructor.
Definition at line 34 of file PoolManager.cpp.
|
delete |
Prevent instances of this class to be copy constructed.
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Clears all pools managed by the pool manager.
Implements IPoolManager.
Definition at line 96 of file PoolManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Locks a pool for execution.
Implements IPoolManager.
Definition at line 39 of file PoolManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Returns the total number of pools managed by the pool manager.
Implements IPoolManager.
Definition at line 106 of file PoolManager.cpp.
|
delete |
Prevent instances of this class to be copied.
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Register pool to be managed by the pool.
[in] | pool | Pool to be managed |
Implements IPoolManager.
Definition at line 64 of file PoolManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Releases a free pool from the managed pools.
Implements IPoolManager.
Definition at line 76 of file PoolManager.cpp.
References ARM_COMPUTE_ERROR_ON, and ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Releases memory pool.
[in] | pool | Memory pool to release |
Implements IPoolManager.
Definition at line 50 of file PoolManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, and arm_compute::mlgo::parser::end().