std::unique_lock::owns_lock
bool owns_lock() const; | | (since C++11) |
|---|
检查是否*this是否拥有一个锁定的互斥体。
参数
%280%29
返回值
true如果*this拥有一个相关的互斥体并拥有它的所有权,false否则。
例外
noexcept规格:
noexcept
另见
operator bool | tests whether the lock owns its associated mutex (public member function) |
|---|
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

