bool owns_lock() const noexcept;
*this owns a locked mutex or not.
*this has an associated mutex and has acquired shared ownership of it,
| tests whether the lock owns its associated mutex
(public member function)
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.