mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 01:55:59 +00:00
Merge pull request 'Fix queue put to not use double reference' (#30) from fix/queue into main
Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils/pulls/30
This commit is contained in:
commit
abfb9f08ff
@ -45,7 +45,7 @@ namespace sta
|
||||
* @param timeout Timeout
|
||||
* @return True on success
|
||||
*/
|
||||
bool put(const Message & msg, uint32_t timeout = osWaitForever);
|
||||
bool put(const Message msg, uint32_t timeout = osWaitForever);
|
||||
/**
|
||||
* @brief Take message from queue.
|
||||
*
|
||||
|
@ -30,7 +30,7 @@ namespace sta
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool RtosQueue<T>::put(const T & msg, uint32_t timeout /* = osWaitForever */)
|
||||
bool RtosQueue<T>::put(const T msg, uint32_t timeout /* = osWaitForever */)
|
||||
{
|
||||
return (osOK == osMessageQueuePut(handle_, &msg, 0, timeout));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user