The struct lock_guard is a mutex wrapper that provides a convenient RAII-style mechanism for owning a mutex for the duration of a scoped block. When a lock_guard object is created, it attempts to take ownership of the mutex it is given. When control leaves the scope in which the lock_guard object was created, the lock_guard is destructed and the mutex is released. The lock_guard struct is non-copyable.
More...
#include <lock_guard.hpp>
template<typename MutexT>
struct etl::lock_guard< MutexT >
The struct lock_guard is a mutex wrapper that provides a convenient RAII-style mechanism for owning a mutex for the duration of a scoped block. When a lock_guard object is created, it attempts to take ownership of the mutex it is given. When control leaves the scope in which the lock_guard object was created, the lock_guard is destructed and the mutex is released. The lock_guard struct is non-copyable.
◆ mutex_type
template<typename MutexT>
◆ lock_guard() [1/3]
template<typename MutexT>
◆ lock_guard() [2/3]
template<typename MutexT>
◆ ~lock_guard()
template<typename MutexT>
◆ lock_guard() [3/3]
template<typename MutexT>
◆ operator=()
template<typename MutexT>
The documentation for this struct was generated from the following file: