#include <btu/common/threading.hpp>
template <typename GuardedType, basic_lockable MutexType = std:: mutex>
update_guard class
Public types
- using mutex_type = MutexType
- using value_type = GuardedType
Constructors, destructors, conversion operators
- update_guard(synchronized<GuardedType, MutexType>& sv) explicit
-
update_guard(const synchronized<std::
remove_const_t<GuardedType>, MutexType>& sv) explicit -
update_guard(synchronized<GuardedType, MutexType>& sv,
std::
unique_lock<MutexType> lock) explicit -
update_guard(const synchronized<std::
remove_const_t<GuardedType>, MutexType>& sv, std:: unique_lock<MutexType> lock) explicit
Public functions
- auto operator*() → GuardedType& noexcept
- auto operator->() → GuardedType* noexcept