RAII mutex guard for automatic lock/unlock.
More...
#include <esp32_tmc_mutex.hpp>
|
| | TmcMutexGuard (Esp32TmcMutex &mutex) noexcept |
| | Lock mutex (blocks until acquired)
|
| |
| | ~TmcMutexGuard () noexcept |
| | Unlock mutex (automatically called on destruction)
|
| |
| void | unlock () noexcept |
| | Manually unlock mutex.
|
| |
| bool | is_locked () const noexcept |
| | Check if mutex is currently locked by this guard.
|
| |
RAII mutex guard for automatic lock/unlock.
Automatically locks mutex on construction and unlocks on destruction. Provides exception-safe mutex locking.
◆ TmcMutexGuard()
Lock mutex (blocks until acquired)
◆ ~TmcMutexGuard()
| TmcMutexGuard::~TmcMutexGuard |
( |
| ) |
|
|
inlinenoexcept |
Unlock mutex (automatically called on destruction)
◆ is_locked()
| bool TmcMutexGuard::is_locked |
( |
| ) |
const |
|
inlinenoexcept |
Check if mutex is currently locked by this guard.
◆ unlock()
| void TmcMutexGuard::unlock |
( |
| ) |
|
|
inlinenoexcept |
◆ locked_
| bool TmcMutexGuard::locked_ |
|
private |
◆ mutex_
The documentation for this class was generated from the following file: