Documentation Home >> Headers >> <jss/synchronized_value.hpp> Header >> jss::update_guard >> jss::update_guard Constructor

Construct a jss::update_guard<> instance that locks the internal mutex on the specified jss::synchronized_value<> instance.

explicit update_guard(jss::synchronized_value<T>& sv);

Effects:

Constructs a jss::update_guard<> instance that references the supplied jss::synchronized_value<> instance. Locks the internal mutex on sv.

Throws:

Any exceptions thrown by the lock operation on the internal mutex.

Header

#include <jss/synchronized_value.hpp>

See Also