Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 59) sorted by relevance

123

/libcore/jsr166-tests/src/test/java/jsr166/
DStampedLockTest.java34 final StampedLock lock; field in StampedLockTest.InterruptibleLockRunnable
46 final StampedLock lock; field in StampedLockTest.InterruptedLockRunnable
56 void releaseWriteLock(StampedLock lock, long s) { in releaseWriteLock()
66 StampedLock lock; in testConstructor() local
77 StampedLock lock = new StampedLock(); in testLock() local
103 StampedLock lock = new StampedLock(); in testUnlock() local
130 StampedLock lock = new StampedLock(); in testTryUnlock() local
162 StampedLock lock = new StampedLock(); in testWriteUnlock_IMSE() local
173 StampedLock lock = new StampedLock(); in testWriteUnlock_IMSE2() local
186 StampedLock lock = new StampedLock(); in testWriteUnlock_IMSE3() local
[all …]
DReentrantReadWriteLockTest.java41 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.InterruptibleLockRunnable
53 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.InterruptedLockRunnable
80 void releaseWriteLock(PublicReentrantReadWriteLock lock) { in releaseWriteLock()
91 void waitForQueuedThread(PublicReentrantReadWriteLock lock, Thread t) { in waitForQueuedThread()
105 void assertNotWriteLocked(PublicReentrantReadWriteLock lock) { in assertNotWriteLocked()
117 void assertWriteLockedBy(PublicReentrantReadWriteLock lock, Thread t) { in assertWriteLockedBy()
134 void assertWriteLockedByMoi(PublicReentrantReadWriteLock lock) { in assertWriteLockedByMoi()
141 void assertHasNoWaiters(PublicReentrantReadWriteLock lock, Condition c) { in assertHasNoWaiters()
148 void assertHasWaiters(PublicReentrantReadWriteLock lock, Condition c, in assertHasWaiters()
193 PublicReentrantReadWriteLock lock; in testConstructor() local
[all …]
DReentrantLockTest.java40 final ReentrantLock lock; field in ReentrantLockTest.InterruptibleLockRunnable
41 InterruptibleLockRunnable(ReentrantLock lock) { this.lock = lock; } in InterruptibleLockRunnable()
52 final ReentrantLock lock; field in ReentrantLockTest.InterruptedLockRunnable
53 InterruptedLockRunnable(ReentrantLock lock) { this.lock = lock; } in InterruptedLockRunnable()
79 void releaseLock(PublicReentrantLock lock) { in releaseLock()
89 void waitForQueuedThread(PublicReentrantLock lock, Thread t) { in waitForQueuedThread()
103 void assertNotLocked(PublicReentrantLock lock) { in assertNotLocked()
113 void assertLockedBy(PublicReentrantLock lock, Thread t) { in assertLockedBy()
125 void assertLockedByMoi(PublicReentrantLock lock) { in assertLockedByMoi()
132 void assertHasNoWaiters(PublicReentrantLock lock, Condition c) { in assertHasNoWaiters()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DDelayQueue.java50 private final transient ReentrantLock lock = new ReentrantLock(); field in DelayQueue
114 final ReentrantLock lock = this.lock; in offer() local
161 final ReentrantLock lock = this.lock; in poll() local
181 final ReentrantLock lock = this.lock; in take() local
226 final ReentrantLock lock = this.lock; in poll() local
276 final ReentrantLock lock = this.lock; in peek() local
286 final ReentrantLock lock = this.lock; in size() local
317 final ReentrantLock lock = this.lock; in drainTo() local
367 final ReentrantLock lock = this.lock; in clear() local
400 final ReentrantLock lock = this.lock; in toArray() local
[all …]
DLinkedBlockingDeque.java129 final ReentrantLock lock = new ReentrantLock(); field in LinkedBlockingDeque
168 final ReentrantLock lock = this.lock; in LinkedBlockingDeque() local
315 final ReentrantLock lock = this.lock; in offerFirst() local
330 final ReentrantLock lock = this.lock; in offerLast() local
346 final ReentrantLock lock = this.lock; in putFirst() local
363 final ReentrantLock lock = this.lock; in putLast() local
382 final ReentrantLock lock = this.lock; in offerFirst() local
405 final ReentrantLock lock = this.lock; in offerLast() local
438 final ReentrantLock lock = this.lock; in pollFirst() local
448 final ReentrantLock lock = this.lock; in pollLast() local
[all …]
DCyclicBarrier.java128 private final ReentrantLock lock = new ReentrantLock(); field in CyclicBarrier
173 final ReentrantLock lock = this.lock; in dowait() local
419 final ReentrantLock lock = this.lock; in isBroken() local
438 final ReentrantLock lock = this.lock; in reset() local
455 final ReentrantLock lock = this.lock; in getNumberWaiting() local
DArrayBlockingQueue.java85 final ReentrantLock lock; field in ArrayBlockingQueue
238 final ReentrantLock lock = this.lock; in ArrayBlockingQueue() local
281 final ReentrantLock lock = this.lock; in offer() local
304 final ReentrantLock lock = this.lock; in put() local
328 final ReentrantLock lock = this.lock; in offer() local
344 final ReentrantLock lock = this.lock; in poll() local
354 final ReentrantLock lock = this.lock; in take() local
367 final ReentrantLock lock = this.lock; in poll() local
382 final ReentrantLock lock = this.lock; in peek() local
399 final ReentrantLock lock = this.lock; in size() local
[all …]
DPriorityBlockingQueue.java137 private final ReentrantLock lock; field in PriorityBlockingQueue
450 final ReentrantLock lock = this.lock; in offer() local
504 final ReentrantLock lock = this.lock; in poll() local
514 final ReentrantLock lock = this.lock; in take() local
528 final ReentrantLock lock = this.lock; in poll() local
541 final ReentrantLock lock = this.lock; in peek() local
564 final ReentrantLock lock = this.lock; in size() local
631 final ReentrantLock lock = this.lock; in remove() local
648 final ReentrantLock lock = this.lock; in removeEQ() local
672 final ReentrantLock lock = this.lock; in contains() local
[all …]
DScheduledThreadPoolExecutor.java849 private final ReentrantLock lock = new ReentrantLock(); field in ScheduledThreadPoolExecutor.DelayedWorkQueue
956 final ReentrantLock lock = this.lock; in contains() local
966 final ReentrantLock lock = this.lock; in remove() local
989 final ReentrantLock lock = this.lock; in size() local
1007 final ReentrantLock lock = this.lock; in peek() local
1020 final ReentrantLock lock = this.lock; in offer() local
1072 final ReentrantLock lock = this.lock; in poll() local
1085 final ReentrantLock lock = this.lock; in take() local
1121 final ReentrantLock lock = this.lock; in poll() local
1161 final ReentrantLock lock = this.lock; in clear() local
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidMonitorTest.java111 private final Object lock; field in OldAndroidMonitorTest.Waiter
115 public Waiter(Object lock, CountDownLatch cdl) { in Waiter()
143 final Object lock = new Object(); in testInterrupt() local
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamEncoder.java50 Object lock, in forOutputStreamWriter()
65 Object lock, in forOutputStreamWriter()
72 Object lock, in forOutputStreamWriter()
174 private StreamEncoder(OutputStream out, Object lock, Charset cs) { in StreamEncoder()
181 private StreamEncoder(OutputStream out, Object lock, CharsetEncoder enc) { in StreamEncoder()
DStreamDecoder.java62 Object lock, in forInputStreamReader()
77 Object lock, in forInputStreamReader()
84 Object lock, in forInputStreamReader()
231 StreamDecoder(InputStream in, Object lock, Charset cs) { in StreamDecoder()
238 StreamDecoder(InputStream in, Object lock, CharsetDecoder dec) { in StreamDecoder()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java96 abstract void lock(); in lock() method in ReentrantLock.Sync
181 final void lock() { in lock() method in ReentrantLock.NonfairSync
199 final void lock() { in lock() method in ReentrantLock.FairSync
261 public void lock() { in lock() method in ReentrantLock
DLock.java157 void lock(); in lock() method
DReentrantReadWriteLock.java685 protected ReadLock(ReentrantReadWriteLock lock) { in ReadLock()
699 public void lock() { in lock() method in ReentrantReadWriteLock.ReadLock
899 protected WriteLock(ReentrantReadWriteLock lock) { in WriteLock()
920 public void lock() { in lock() method in ReentrantReadWriteLock.WriteLock
/libcore/ojluni/src/main/java/java/io/
DReader.java60 protected Object lock; field in Reader
76 protected Reader(Object lock) { in Reader()
DWriter.java69 protected Object lock; field in Writer
86 protected Writer(Object lock) { in Writer()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockTable.java185 FileLock lock = ref.get(); in remove() local
206 FileLock lock = ref.get(); in removeAll() local
237 FileLock lock = ref.get(); in replace() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DWriterTest.java68 Object lock = new Object(); in test_writeLjava_lang_String() local
77 MockLockWriter(Object lock) { in MockLockWriter()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClientProvider.java48 private static final Object lock = new Object(); field in FtpClientProvider
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java105 FileLock lock = new MockFileLock(null, 0, 10, true); in test_channel() local
141 FileLock lock = new MockFileLock(null, 0, 10, true); in test_isShared() local
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DSelectorProvider.java71 private static final Object lock = new Object(); field in SelectorProvider
/libcore/ojluni/src/main/java/java/util/
DTimerTask.java40 final Object lock = new Object(); field in TimerTask
/libcore/ojluni/src/main/java/java/lang/
DThrowable.java721 abstract Object lock(); in lock() method in Throwable.PrintStreamOrWriter
734 Object lock() { in lock() method in Throwable.WrappedPrintStream
750 Object lock() { in lock() method in Throwable.WrappedPrintWriter
/libcore/ojluni/src/main/java/java/nio/channels/
DFileChannel.java833 public abstract FileLock lock(long position, long size, boolean shared) in lock() method in FileChannel
874 public final FileLock lock() throws IOException { in lock() method in FileChannel

123