SharedMemFixes

This commit is contained in:
CarlWachter
2023-09-23 11:31:59 +02:00
parent 6f64a06164
commit 3e28326798
2 changed files with 9 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ namespace sta
* @ingroup STA_RTOS_API
*/
template <typename T>
class RtosMemPool
class RtosSharedMem
{
public:
using Message = T; /**< message type */
@@ -32,10 +32,9 @@ namespace sta
/**
* @brief Create a memory pool. And allocates exavlty one block.
*
* @param block_size names the size of each block.
* @param timeout names the timeout in milliseconds.
*/
RtosSharedMem(uint32_t block_size, uint32_t timeout);
RtosSharedMem(uint32_t timeout);
/**
* @brief Destroy the Rtos Mem Pool object and frees the memory.