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

Destroys a jss::update_guard<> instance and unlocks the mutex on the associated jss::synchronized_value<> object.

~update_guard();

Effects:

Unlocks the internal mutex in the jss::synchronized_value<> instance sv supplied when *this was constructed.

Throws:

Nothing.

Synchronization:

The destruction of an jss::update_guard<> instance synchronizes-with the construction of a subsequent jss::update_guard<> instance referencing the same jss::synchronized_value<> instance, or a subsequent use of the pointer dereference operator or member access operator on that jss::synchronized_value<> instance.

Header

#include <jss/synchronized_value.hpp>

See Also