3#include <zephyr/kernel.h>
4#include <tl/expected.hpp>
bool m_didGetLock
Definition Mutex.hpp:46
MutexLockGuard & operator=(const MutexLockGuard &)=delete
Mutex & m_mutex
Definition Mutex.hpp:44
MutexLockGuard & operator=(MutexLockGuard &&)=delete
bool didGetLock() const
Check if the mutex was successfully locked with this lock guard.
Definition Mutex.cpp:40
~MutexLockGuard()
Definition Mutex.cpp:27
MutexLockGuard(MutexLockGuard &&)
MutexLockGuard(const MutexLockGuard &)=delete
~Mutex()
Destroy the mutex.
Definition Mutex.cpp:55
struct k_mutex * getZephyrMutex()
Get the underlying Zephyr mutex object.
Definition Mutex.cpp:67
struct k_mutex m_zephyrMutex
Definition Mutex.hpp:99
Mutex()
Construct a new mutex.
Definition Mutex.cpp:49
MutexLockGuard lockGuard(k_timeout_t timeout)
Get a lock guard for this mutex.
Definition Mutex.cpp:59