unique_lock::operator= Operator
Copies the stored mutex pointer and associated ownership status from a specified object.
unique_lock& operator=(
unique_lock&& Other
) _NOEXCEPT;
Parameters
- Other
A unique_lock object.
Return Value
*this
Remarks
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.
Requirements
Header: mutex
Namespace: std