List of usage examples for java.util.concurrent.locks ReentrantLock hasQueuedThreads
public final boolean hasQueuedThreads()
From source file:Main.java
private static String getLockInfo(ReentrantLock lock) { String lockid = "Lock@" + Integer.toHexString(lock.hashCode()); return "lock " + lockid + " held=" + lock.getHoldCount() + " isHeldMe=" + lock.isHeldByCurrentThread() + " hasQueueThreads=" + lock.hasQueuedThreads(); }