mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 03:07:33 +00:00
Added method for reading thread flags
This commit is contained in:
@@ -81,6 +81,11 @@ namespace sta
|
||||
*/
|
||||
void notify(uint32_t flags);
|
||||
|
||||
/**
|
||||
* @return Returns the flags that were set for this thread.
|
||||
*/
|
||||
uint32_t getFlags();
|
||||
|
||||
/**
|
||||
* @brief Send termination request to thread.
|
||||
*/
|
||||
|
@@ -32,6 +32,12 @@ namespace sta
|
||||
osThreadFlagsSet(handle_.get(), flags);
|
||||
}
|
||||
|
||||
uint32_t RtosThread::getFlags()
|
||||
{
|
||||
STA_ASSERT(handle_.get() != nullptr);
|
||||
|
||||
return osThreadFlagsGet();
|
||||
}
|
||||
|
||||
void RtosThread::requestTermination()
|
||||
{
|
||||
|
Reference in New Issue
Block a user