std::shared_lock::owns_lock
STD::共享[医]锁::拥有[医]锁
bool owns_lock() const; | | (since C++14) |
---|
检查是否*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。