unique_lock::operator= Operator

Copies the stored mutex pointer and associated ownership status from a specified object.

unique_lock& operator=(
   unique_lock&& Other
) _NOEXCEPT;

Other

A unique_lock object.

If the calling thread owns the previously associated mutex, before this method calls unlock on the mutex, it assigns the new values.

After the copy, this method sets Other to a default-constructed state.

Header: mutex

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft