inLock property

bool get inLock

for reentrant, test whether we are currently in the synchronized section. for non reentrant, it returns the locked status.

For non-reentrant lock, it matches the locked status and since it does not mean anything, it should not be used as behavior may change in the future.

Implementation

bool get inLock;