mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 01:55:59 +00:00
Added method for reading thread flags
This commit is contained in:
parent
cf5466fe55
commit
d591560c95
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user