mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-05 19:01:54 +00:00
Added flags clear for thread and new constructor for queue.
This commit is contained in:
@@ -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 */)
|
||||
|
Reference in New Issue
Block a user