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 Wed Jul 12 2017 16:07:02 by 1.7.2