A locker is a process execution locking step.
It permits to identify threads which are blocked on a condition through a wait operation. Those threads are usually in WAITING or TIMED_WAITING state.
The Jeyzer analyzer flags those threads as locked, like it does also for the threads in BLOCKED state.
Lockers are declared in the Jeyzer analysis profiles.
Lockers can also be declared at code level using the Jeyzer Locker
annotation (to end up automatically in the underlying Jeyzer analysis profile).
Examples :
ReadLock, CyclicBarrier, Semaphore
Declaration examples (source : Java shared profile) :
<locker pattern="java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock" name="ReadLock"/>
Annotated code example (source : Jeyzer Labor demo) :
@Locker(name="Shared resource locking") public void accessSharedResources(){ ...