15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_GUARDEDVALUE_H_ 16 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_GUARDEDVALUE_H_ 27 template <
typename ValueT>
33 operator ValueT()
const;
51 mutable std::mutex m_mutex;
57 template <
typename ValueT>
59 std::lock_guard<std::mutex> lock{m_mutex};
64 template <
typename ValueT>
66 std::lock_guard<std::mutex> lock{m_mutex};
70 template <
typename ValueT>
78 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_GUARDEDVALUE_H_ Definition: GuardedValue.h:28
ValueT operator=(const ValueT &value)
Definition: GuardedValue.h:58
GuardedValue(const ValueT &value)
Definition: GuardedValue.h:71
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36