1#ifndef OS_WRAPPER_VARIABLE_MEMORY_POOL_H_INCLUDED
2#define OS_WRAPPER_VARIABLE_MEMORY_POOL_H_INCLUDED
8class VariableMemoryPoolFactory;
Abstract class that has functions of common RTOS's variable-size memory pool.
Definition VariableMemoryPool.h:21
virtual ~VariableMemoryPool()
Definition VariableMemoryPool.h:23
static void destroy(VariableMemoryPool *p)
Destroy a VariableMemoryPool object.
Definition VariableMemoryPool.cpp:20
virtual void * allocate(std::size_t size)=0
Allocate a memory from this VariableMemoryPool.
virtual void deallocate(void *p)=0
Release the allocated memory.
static VariableMemoryPool * create(std::size_t memoryPoolSize, void *memoryPoolAddress=0)
Create a VariableMemoryPool object.
Definition VariableMemoryPool.cpp:14
OSWrapper provides abstract C++ interface of common RTOS: thread, mutex, event flag,...
Definition EventFlag.cpp:5
void registerVariableMemoryPoolFactory(VariableMemoryPoolFactory *factory)
Register the VariableMemoryPoolFactory.
Definition VariableMemoryPool.cpp:9