Added flags clear for thread and new constructor for queue.

This commit is contained in:
dario
2023-11-07 12:40:50 +01:00
parent 0e96b2ec29
commit c609dc81cc
4 changed files with 28 additions and 0 deletions

View File

@@ -21,6 +21,13 @@ namespace sta
{
STA_ASSERT(handle != nullptr);
}
template <typename T>
RtosQueue<T>::RtosQueue(uint32_t length)
: handle_{osMessageQueueNew(length, sizeof(Message), NULL)}
{
STA_ASSERT(handle_ != NULL);
}
template <typename T>
bool RtosQueue<T>::put(const Message & msg, uint32_t timeout /* = osWaitForever */)