#include <RtosMutex.h>
◆ RtosMutex() [1/3]
◆ ~RtosMutex()
| RtosMutex::~RtosMutex |
( |
| ) |
|
|
noexcept |
◆ RtosMutex() [2/3]
◆ RtosMutex() [3/3]
◆ Give()
◆ lock()
Lock the mutex, blocking indefinitely.
- Returns
- true if successfully locked.
◆ lock_shared()
| bool RtosMutex::lock_shared |
( |
| ) |
|
|
inlinenoexcept |
◆ native_handle()
| OS_Mutex RtosMutex::native_handle |
( |
| ) |
const |
|
inlinenoexcept |
Get the native RTOS handle (platform-specific).
- Returns
- The underlying OS_Mutex handle.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Take()
| bool RtosMutex::Take |
( |
uint32_t |
timeout_ms = 0 | ) |
|
|
inlinenoexcept |
Take (lock) the mutex with optional timeout.
- Parameters
-
| timeout_ms | Timeout in milliseconds (0 = block forever). |
- Returns
- true if successfully taken.
◆ try_lock()
| bool RtosMutex::try_lock |
( |
| ) |
|
|
noexcept |
Try to lock the mutex without blocking.
- Returns
- true if successfully locked.
◆ try_lock_for()
| bool RtosMutex::try_lock_for |
( |
uint32_t |
timeout_ms | ) |
|
|
noexcept |
Try to lock the mutex with a timeout.
- Parameters
-
| timeout_ms | Maximum time to wait in milliseconds. |
- Returns
- true if successfully locked within the timeout.
◆ try_lock_shared()
| bool RtosMutex::try_lock_shared |
( |
| ) |
|
|
inlinenoexcept |
◆ try_lock_shared_for()
| bool RtosMutex::try_lock_shared_for |
( |
uint32_t |
timeout_ms | ) |
|
|
inlinenoexcept |
◆ unlock()
| void RtosMutex::unlock |
( |
| ) |
|
|
noexcept |
◆ unlock_shared()
| void RtosMutex::unlock_shared |
( |
| ) |
|
|
inlinenoexcept |
◆ handle_
The documentation for this class was generated from the following files: