std::unique_lock<Mutex>::operator=
来自cppreference.com
< cpp | thread | unique lock
并发支持库
|
|
std::unique_lock
成员函数 | ||||
unique_lock::operator=
|
||||
锁定 | ||||
修改器 | ||||
观察器 | ||||
非成员函数 | ||||
unique_lock&
operator=(
unique_lock&&
other );
|
(C++11 起) | |
移动赋值运算符。用移动语义以 other
的内容替换内容。
若调用前 *this 拥有关联互斥并获得其所有权,则解锁互斥。
参数
other | - | 以之替换状态的另一 unique_lock
|
返回值
*this
异常
不抛出