CppELib 1.7.0
Loading...
Searching...
No Matches
FixedMemoryPoolFactory.h
Go to the documentation of this file.
1#ifndef OS_WRAPPER_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
2#define OS_WRAPPER_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
3
4#include <cstddef>
5
6namespace OSWrapper {
7
8class FixedMemoryPool;
9
11public:
13 virtual FixedMemoryPool* create(std::size_t blockSize, std::size_t memoryPoolSize, void* memoryPoolAddress) = 0;
14 virtual void destroy(FixedMemoryPool* p) = 0;
15 virtual std::size_t getRequiredMemorySize(std::size_t blockSize, std::size_t numBlocks) = 0;
16};
17
18}
19
20#endif // OS_WRAPPER_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
Definition FixedMemoryPoolFactory.h:10
virtual FixedMemoryPool * create(std::size_t blockSize, std::size_t memoryPoolSize, void *memoryPoolAddress)=0
virtual void destroy(FixedMemoryPool *p)=0
virtual ~FixedMemoryPoolFactory()
Definition FixedMemoryPoolFactory.h:12
virtual std::size_t getRequiredMemorySize(std::size_t blockSize, std::size_t numBlocks)=0
Abstract class that has functions of common RTOS's fixed-size memory pool.
Definition FixedMemoryPool.h:23
OSWrapper provides abstract C++ interface of common RTOS: thread, mutex, event flag,...
Definition EventFlag.cpp:5