mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 03:07:33 +00:00
Added mutex timeout and mutex ownership
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <cmsis_os2.h>
|
||||
|
||||
|
||||
namespace sta
|
||||
{
|
||||
/**
|
||||
@@ -30,10 +31,17 @@ namespace sta
|
||||
*/
|
||||
RtosMutex(const char* name);
|
||||
|
||||
/**
|
||||
* @brief Method for checking mutex ownership.
|
||||
*
|
||||
* @return Returns true if the currently running thread is the owner of the mutex.
|
||||
*/
|
||||
bool isCurrentThreadOwner() override;
|
||||
|
||||
/**
|
||||
* @brief Acquire the mutex.
|
||||
*/
|
||||
void acquire() override;
|
||||
void acquire(uint32_t timeout = osWaitForever) override;
|
||||
|
||||
/**
|
||||
* @brief Release the mutex.
|
||||
|
Reference in New Issue
Block a user