40#include "freertos-config.h"
52#ifndef CPP_FREERTOS_NO_EXCEPTIONS
56#ifdef CPP_FREERTOS_NO_CPP_STRINGS
57#error "FreeRTOS-Addons require C++ Strings if you are using exceptions"
67#ifndef CPP_FREERTOS_NO_EXCEPTIONS
79 sprintf(errorString,
"MemoryPool malloc Failed");
86 virtual const char *
what()
const throw()
110 sprintf(errorString,
"MemoryPool Bad Alignment");
117 virtual const char *
what()
const throw()
126 char errorString[80];
185 void *preallocatedMemory,
186 int preallocatedMemorySize,
209 void AddMemory(
void *preallocatedMemory,
210 int preallocatedMemorySize);
225 void Free(
void *item);
253 std::list<void *>FreeItems;
259 void CalculateValidAlignment();
264 void CalculateItemSize();
270#if __cplusplus >= 201103L
Definition: mem_pool.hpp:102
MemoryPoolBadAlignmentException()
Definition: mem_pool.hpp:108
virtual const char * what() const
Definition: mem_pool.hpp:117
Definition: mem_pool.hpp:142
void * Allocate()
Definition: cmem_pool.cpp:149
void AddMemory(int itemCount)
Definition: cmem_pool.cpp:170
void Free(void *item)
Definition: cmem_pool.cpp:163
Definition: mem_pool.hpp:71
virtual const char * what() const
Definition: mem_pool.hpp:86
MemoryPoolMallocException()
Definition: mem_pool.hpp:77
Definition: mutex.hpp:109
Definition: condition_variable.hpp:57