canLock property

bool get canLock

It returns true if the lock can be locked. For basic lock (reentrant or not), it is when the lock is not locked.

For multi lock, it is when any lock is locked.

Implementation

bool get canLock;