Check whether or not
owns a lock on a mutex.
explicit operator bool() const;
This is an
conversion operator, so is only implicitly called in contexts where
the result is used as a boolean, and not where the result would
be treated as an integer value 0 or 1. This behaviour is emulated
on compilers that do not support C++11 explicit operators.