Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Define and manage fixed-size memory pools of objects of a given type. More...
|Create and Initialize a memory pool. |
|T *||alloc (void)|
|Allocate a memory block of type T from a memory pool. |
|T *||calloc (void)|
|Allocate a memory block of type T from a memory pool and set memory block to zero. |
|osStatus||free (T *block)|
|Return an allocated memory block back to a specific memory pool. |
template<typename T, uint32_t pool_sz>
class rtos::MemoryPool< T, pool_sz >
Define and manage fixed-size memory pools of objects of a given type.
- Template Parameters:
T data type of a single object (element). queue_sz maximum number of objects (elements) in the memory pool.
Constructor & Destructor Documentation
Generated on Mon Dec 17 2018 15:58:07 by 1.7.2