Home
last modified time | relevance | path

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

1234

/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/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java79 private final transient ReentrantLock lock = new ReentrantLock(); field in DelayQueue
143 final ReentrantLock lock = this.lock; in offer() local
190 final ReentrantLock lock = this.lock; in poll() local
210 final ReentrantLock lock = this.lock; in take() local
255 final ReentrantLock lock = this.lock; in poll() local
305 final ReentrantLock lock = this.lock; in peek() local
315 final ReentrantLock lock = this.lock; in size() local
346 final ReentrantLock lock = this.lock; in drainTo() local
396 final ReentrantLock lock = this.lock; in clear() local
429 final ReentrantLock lock = this.lock; in toArray() local
[all …]
DLinkedBlockingDeque.java158 final ReentrantLock lock = new ReentrantLock(); field in LinkedBlockingDeque
197 final ReentrantLock lock = this.lock; in LinkedBlockingDeque() local
344 final ReentrantLock lock = this.lock; in offerFirst() local
359 final ReentrantLock lock = this.lock; in offerLast() local
375 final ReentrantLock lock = this.lock; in putFirst() local
392 final ReentrantLock lock = this.lock; in putLast() local
411 final ReentrantLock lock = this.lock; in offerFirst() local
434 final ReentrantLock lock = this.lock; in offerLast() local
467 final ReentrantLock lock = this.lock; in pollFirst() local
477 final ReentrantLock lock = this.lock; in pollLast() local
[all …]
DCyclicBarrier.java157 private final ReentrantLock lock = new ReentrantLock(); field in CyclicBarrier
202 final ReentrantLock lock = this.lock; in dowait() local
448 final ReentrantLock lock = this.lock; in isBroken() local
467 final ReentrantLock lock = this.lock; in reset() local
484 final ReentrantLock lock = this.lock; in getNumberWaiting() local
DArrayBlockingQueue.java114 final ReentrantLock lock; field in ArrayBlockingQueue
267 final ReentrantLock lock = this.lock; in ArrayBlockingQueue() local
310 final ReentrantLock lock = this.lock; in offer() local
333 final ReentrantLock lock = this.lock; in put() local
357 final ReentrantLock lock = this.lock; in offer() local
373 final ReentrantLock lock = this.lock; in poll() local
383 final ReentrantLock lock = this.lock; in take() local
396 final ReentrantLock lock = this.lock; in poll() local
411 final ReentrantLock lock = this.lock; in peek() local
428 final ReentrantLock lock = this.lock; in size() local
[all …]
DPriorityBlockingQueue.java166 private final ReentrantLock lock; field in PriorityBlockingQueue
479 final ReentrantLock lock = this.lock; in offer() local
533 final ReentrantLock lock = this.lock; in poll() local
543 final ReentrantLock lock = this.lock; in take() local
557 final ReentrantLock lock = this.lock; in poll() local
570 final ReentrantLock lock = this.lock; in peek() local
593 final ReentrantLock lock = this.lock; in size() local
660 final ReentrantLock lock = this.lock; in remove() local
677 final ReentrantLock lock = this.lock; in removeEQ() local
701 final ReentrantLock lock = this.lock; in contains() local
[all …]
DScheduledThreadPoolExecutor.java878 private final ReentrantLock lock = new ReentrantLock(); field in ScheduledThreadPoolExecutor.DelayedWorkQueue
985 final ReentrantLock lock = this.lock; in contains() local
995 final ReentrantLock lock = this.lock; in remove() local
1018 final ReentrantLock lock = this.lock; in size() local
1036 final ReentrantLock lock = this.lock; in peek() local
1049 final ReentrantLock lock = this.lock; in offer() local
1101 final ReentrantLock lock = this.lock; in poll() local
1114 final ReentrantLock lock = this.lock; in take() local
1150 final ReentrantLock lock = this.lock; in poll() local
1190 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/luni/src/main/native/
DAsynchronousCloseMonitor.cpp92 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in signalBlockedThreads() local
107 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in AsynchronousCloseMonitorImpl() local
122 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in ~AsynchronousCloseMonitorImpl() local
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java51 public void lock() { in lock() method in ReentrantLock
145 void lock() { in lock() method in ReentrantLock.FairSync
163 void lock() { in lock() method in ReentrantLock.NonfairSync
181 abstract void lock(); in lock() method in ReentrantLock.Sync
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousFileChannel.java457 public abstract <A> void lock(long position, in lock() method in AsynchronousFileChannel
491 public final <A> void lock(A attachment, in lock() method in AsynchronousFileChannel
532 public abstract Future<FileLock> lock(long position, long size, boolean shared); in lock() method in AsynchronousFileChannel
556 public final Future<FileLock> lock() { in lock() method in AsynchronousFileChannel
/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.java63 Object lock, in forInputStreamReader()
78 Object lock, in forInputStreamReader()
85 Object lock, in forInputStreamReader()
233 StreamDecoder(InputStream in, Object lock, Charset cs) { in StreamDecoder()
240 StreamDecoder(InputStream in, Object lock, CharsetDecoder dec) { in StreamDecoder()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java124 abstract void lock(); in lock() method in ReentrantLock.Sync
212 final void lock() { in lock() method in ReentrantLock.NonfairSync
230 final void lock() { in lock() method in ReentrantLock.FairSync
293 public void lock() { in lock() method in ReentrantLock
DLock.java186 void lock(); in lock() method
/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/annotations/hiddenapi/java/util/
DTimerTask.java55 final java.lang.Object lock; field in TimerTask

1234