Searched refs:locks (Results 1 – 25 of 57) sorted by relevance
123
36 package java.util.concurrent.locks;41 public class ReentrantLock implements java.util.concurrent.locks.Lock, java.io.Serializable {72 public java.util.concurrent.locks.Condition newCondition() { in newCondition()112 public boolean hasWaiters(java.util.concurrent.locks.Condition condition) { in hasWaiters()116 public int getWaitQueueLength(java.util.concurrent.locks.Condition condition) { in getWaitQueueLength()121 java.util.concurrent.locks.Condition condition) { in getWaitingThreads()132 private final java.util.concurrent.locks.ReentrantLock.Sync sync;139 static final class FairSync extends java.util.concurrent.locks.ReentrantLock.Sync {157 static final class NonfairSync extends java.util.concurrent.locks.ReentrantLock.Sync {175 abstract static class Sync extends java.util.concurrent.locks.AbstractQueuedSynchronizer {[all …]
191 private final java.util.concurrent.locks.Condition notEmpty;197 private final java.util.concurrent.locks.Condition notFull;204 private final java.util.concurrent.locks.ReentrantLock putLock;213 private final java.util.concurrent.locks.ReentrantLock takeLock;
293 final java.util.concurrent.locks.ReentrantLock lock;299 private final java.util.concurrent.locks.Condition notEmpty;305 private final java.util.concurrent.locks.Condition notFull;
365 private final java.util.concurrent.locks.ReentrantLock mainLock;379 private final java.util.concurrent.locks.Condition termination;453 private final class Worker extends java.util.concurrent.locks.AbstractQueuedSynchronizer
218 private final java.util.concurrent.locks.ReentrantLock lock;225 private final java.util.concurrent.locks.Condition notEmpty;
161 private static final Set<String> locks = new HashSet<>(); field in FileHandler447 synchronized(locks) { in openFiles()448 if (locks.contains(lockFileName)) { in openFiles()521 locks.add(lockFileName); in openFiles()723 synchronized(locks) { in close()724 locks.remove(lockFileName); in close()
79 package java.util.concurrent.locks;
36 package java.util.concurrent.locks;
38 import java.util.concurrent.locks.Condition;39 import java.util.concurrent.locks.ReentrantLock;
38 import java.util.concurrent.locks.AbstractQueuedSynchronizer;
45 import java.util.concurrent.locks.Condition;46 import java.util.concurrent.locks.ReentrantLock;
39 import java.util.concurrent.locks.AbstractQueuedSynchronizer;
45 import java.util.concurrent.locks.AbstractQueuedSynchronizer;46 import java.util.concurrent.locks.Condition;47 import java.util.concurrent.locks.ReentrantLock;
35 import java.util.concurrent.locks.ReadWriteLock;36 import java.util.concurrent.locks.ReentrantReadWriteLock;
39 import java.util.concurrent.locks.ReadWriteLock;40 import java.util.concurrent.locks.ReentrantReadWriteLock;
32 import java.util.concurrent.locks.*;
22 import java.util.concurrent.locks.LockSupport;23 import java.util.concurrent.locks.ReentrantLock;
31 import java.util.concurrent.locks.*;
33 import java.util.concurrent.locks.LockSupport;
37 import java.util.concurrent.locks.ReentrantLock;