在线文档教程
C++
线程支持 | Thread support

std::shared_lock::release

STD::共享[医]锁::释放

mutex_type* release((since C++14)

如果存在,则破坏关联互斥体的关联,以及*this...

锁都没锁。如果*this在调用之前,调用方拥有相关互斥锁的所有权,调用方现在负责解锁互斥锁。

参数

%280%29

返回值

指向关联互斥对象的指针或NULL如果没有相关的互斥。

例外

noexcept规格:

noexcept

另见

unlockunlocks the associated mutex (public member function)
releasedisassociates the associated mutex without unlocking it (public member function of std::unique_lock)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/线程/Shared[医]锁/释放