fix(sharedmem): Default constructor

This commit is contained in:
CarlWachter 2024-06-22 15:13:31 +02:00
parent ff1cbf8473
commit 73b1889546
2 changed files with 1 additions and 9 deletions

View File

@ -25,15 +25,12 @@ namespace sta
using Message = T; /**< message type */ using Message = T; /**< message type */
public: public:
// Default Constructor
RtosSharedMem();
/** /**
* @brief Create a memory pool. And allocates exavlty one block. * @brief Create a memory pool. And allocates exavlty one block.
* *
* @param timeout names the timeout in milliseconds. * @param timeout names the timeout in milliseconds.
*/ */
RtosSharedMem(uint32_t timeout); RtosSharedMem(uint32_t timeout = osWaitForever);
/** /**
* @brief Destroy the Rtos Mem Pool object and frees the memory. * @brief Destroy the Rtos Mem Pool object and frees the memory.

View File

@ -10,11 +10,6 @@
namespace sta namespace sta
{ {
template <typename T>
RtosSharedMem<T>::RtosSharedMem()
{
}
template <typename T> template <typename T>
RtosSharedMem<T>::RtosSharedMem(uint32_t timeout /* = osWaitForever */) RtosSharedMem<T>::RtosSharedMem(uint32_t timeout /* = osWaitForever */)
{ {