locked property

  1. @override
bool get locked
override

Whether the lock is currently held, i.e. a call to synchronized is currently running (or waiting for a nested synchronized call to finish, for a reentrant lock).

Implementation

@override
bool get locked => last != null;