CppELib 1.7.0
Loading...
Searching...
No Matches
StdCppFixedMemoryPoolFactory.h
Go to the documentation of this file.
1#ifndef STDCPP_OS_WRAPPER_STDCPP_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
2#define STDCPP_OS_WRAPPER_STDCPP_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
3
5#include <mutex>
6
7namespace StdCppOSWrapper {
8
10public:
13
14private:
15 virtual OSWrapper::FixedMemoryPool* create(std::size_t blockSize, std::size_t memoryPoolSize, void* memoryPoolAddress);
16 virtual void destroy(OSWrapper::FixedMemoryPool* p);
17 virtual std::size_t getRequiredMemorySize(std::size_t blockSize, std::size_t numBlocks);
18
21
22 mutable std::mutex m_mutex;
23};
24
25}
26
27#endif // STDCPP_OS_WRAPPER_STDCPP_FIXED_MEMORY_POOL_FACTORY_H_INCLUDED
Definition FixedMemoryPoolFactory.h:10
Abstract class that has functions of common RTOS's fixed-size memory pool.
Definition FixedMemoryPool.h:23
Definition StdCppFixedMemoryPoolFactory.h:9
virtual ~StdCppFixedMemoryPoolFactory()
Definition StdCppFixedMemoryPoolFactory.h:12
StdCppFixedMemoryPoolFactory()
Definition StdCppFixedMemoryPoolFactory.cpp:144
Implementation of OSWrapper for standard C++11 using std::thread.
Definition StdCppEventFlagFactory.cpp:6