lock_guard using zpp::mutex as a lock.
More...
#include <lock_guard.hpp>
template<typename T_Mutex>
class zpp::lock_guard< T_Mutex >
lock_guard using zpp::mutex as a lock.
- Parameters
-
T_Mutex | the mutex type to use |
Definition at line 23 of file lock_guard.hpp.
◆ lock_guard() [1/4]
template<typename T_Mutex >
Try locking the mutex waiting forever.
- Parameters
-
Definition at line 30 of file lock_guard.hpp.
33 auto res = m_lock.lock();
34 __ASSERT_NO_MSG(res !=
false);
◆ ~lock_guard()
template<typename T_Mutex >
unlock the mutex.
Definition at line 40 of file lock_guard.hpp.
42 auto res = m_lock.unlock();
43 __ASSERT_NO_MSG(res !=
false);
◆ lock_guard() [2/4]
template<typename T_Mutex >
◆ lock_guard() [3/4]
template<typename T_Mutex >
◆ lock_guard() [4/4]
template<typename T_Mutex >
◆ operator=() [1/2]
template<typename T_Mutex >
◆ operator=() [2/2]
template<typename T_Mutex >
The documentation for this class was generated from the following file: