libcoro  1.0
Coroutine support library for C++20

◆ operator bool()

coro::mutex::ownership::operator bool ( ) const
inline

test whether ownership is held

The existence of the object doesn't always means, that ownership is held. For example if ownership has been released, or when try_lock() was not successed. You can use this operator to test, whether ownership is held

Definition at line 65 of file mutex.h.