Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 90) 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/test/java/util/concurrent/tck/
DStampedLockTest.java64 void releaseWriteLock(StampedLock lock, long stamp) { in releaseWriteLock()
75 void releaseReadLock(StampedLock lock, long stamp) { in releaseReadLock()
88 long assertValid(StampedLock lock, long stamp) { in assertValid()
94 void assertUnlocked(StampedLock lock) { in assertUnlocked()
101 List<Action> lockLockers(Lock lock) { in lockLockers()
165 StampedLock lock = new StampedLock(); in testWriteLock_lockUnlock() local
187 StampedLock lock = new StampedLock(); in testReadLock_lockUnlock() local
212 StampedLock lock = new StampedLock(); in testTryUnlockWrite_failure() local
229 StampedLock lock = new StampedLock(); in testTryUnlockRead_failure() local
246 StampedLock lock = new StampedLock(); in testValidate0() local
[all …]
DReentrantReadWriteLockTest.java64 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.InterruptibleLockRunnable
76 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.InterruptedLockRunnable
103 void releaseWriteLock(PublicReentrantReadWriteLock lock) { in releaseWriteLock()
114 void waitForQueuedThread(PublicReentrantReadWriteLock lock, Thread t) { in waitForQueuedThread()
128 void assertNotWriteLocked(PublicReentrantReadWriteLock lock) { in assertNotWriteLocked()
140 void assertWriteLockedBy(PublicReentrantReadWriteLock lock, Thread t) { in assertWriteLockedBy()
157 void assertWriteLockedByMoi(PublicReentrantReadWriteLock lock) { in assertWriteLockedByMoi()
164 void assertHasNoWaiters(PublicReentrantReadWriteLock lock, Condition c) { in assertHasNoWaiters()
171 void assertHasWaiters(PublicReentrantReadWriteLock lock, Condition c, in assertHasWaiters()
216 PublicReentrantReadWriteLock lock; in testConstructor() local
[all …]
DReentrantLockTest.java63 final ReentrantLock lock; field in ReentrantLockTest.InterruptibleLockRunnable
64 InterruptibleLockRunnable(ReentrantLock lock) { this.lock = lock; } in InterruptibleLockRunnable()
75 final ReentrantLock lock; field in ReentrantLockTest.InterruptedLockRunnable
76 InterruptedLockRunnable(ReentrantLock lock) { this.lock = lock; } in InterruptedLockRunnable()
102 void releaseLock(PublicReentrantLock lock) { in releaseLock()
112 void waitForQueuedThread(PublicReentrantLock lock, Thread t) { in waitForQueuedThread()
126 void assertNotLocked(PublicReentrantLock lock) { in assertNotLocked()
136 void assertLockedBy(PublicReentrantLock lock, Thread t) { in assertLockedBy()
148 void assertLockedByMoi(PublicReentrantLock lock) { in assertLockedByMoi()
155 void assertHasNoWaiters(PublicReentrantLock lock, Condition c) { in assertHasNoWaiters()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java35 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.ReadLockRunnable
37 ReadLockRunnable(ReentrantReadWriteLock lock) { in ReadLockRunnable()
49 final ReentrantReadWriteLock lock; field in ReentrantReadWriteLockTest.WriteLockRunnable
51 WriteLockRunnable(ReentrantReadWriteLock lock) { in WriteLockRunnable()
79 private void waitForQueuedThread(DefaultReentrantReadWriteLock lock, Thread thread) { in waitForQueuedThread()
88 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); in testReadLockCondition() local
100 final DefaultReentrantReadWriteLock lock = new DefaultReentrantReadWriteLock(); in testGetQueuedReaderThreads() local
119 final DefaultReentrantReadWriteLock lock = new DefaultReentrantReadWriteLock(); in testGetQueuedWriterThreads() local
DStampedLockTest.java33 final StampedLock lock = new StampedLock(); in testIsLockStamp() local
47 final StampedLock lock = new StampedLock(); in testIsOptimisticReadStamp() local
61 final StampedLock lock = new StampedLock(); in testIsReadLockStamp() local
74 final StampedLock lock = new StampedLock(); in testIsWriteLockStamp() local
/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java80 private final transient ReentrantLock lock = new ReentrantLock(); field in DelayQueue
144 final ReentrantLock lock = this.lock; in offer() local
191 final ReentrantLock lock = this.lock; in poll() local
211 final ReentrantLock lock = this.lock; in take() local
256 final ReentrantLock lock = this.lock; in poll() local
306 final ReentrantLock lock = this.lock; in peek() local
316 final ReentrantLock lock = this.lock; in size() local
372 final ReentrantLock lock = this.lock; in clear() local
405 final ReentrantLock lock = this.lock; in toArray() local
450 final ReentrantLock lock = this.lock; in toArray() local
[all …]
DLinkedBlockingDeque.java159 final ReentrantLock lock = new ReentrantLock(); field in LinkedBlockingDeque
337 final ReentrantLock lock = this.lock; in offerFirst() local
352 final ReentrantLock lock = this.lock; in offerLast() local
368 final ReentrantLock lock = this.lock; in putFirst() local
385 final ReentrantLock lock = this.lock; in putLast() local
404 final ReentrantLock lock = this.lock; in offerFirst() local
427 final ReentrantLock lock = this.lock; in offerLast() local
460 final ReentrantLock lock = this.lock; in pollFirst() local
470 final ReentrantLock lock = this.lock; in pollLast() local
480 final ReentrantLock lock = this.lock; in takeFirst() local
[all …]
DCyclicBarrier.java159 private final ReentrantLock lock = new ReentrantLock(); field in CyclicBarrier
204 final ReentrantLock lock = this.lock; in dowait() local
449 final ReentrantLock lock = this.lock; in isBroken() local
468 final ReentrantLock lock = this.lock; in reset() local
485 final ReentrantLock lock = this.lock; in getNumberWaiting() local
DArrayBlockingQueue.java121 final ReentrantLock lock; field in ArrayBlockingQueue
299 final ReentrantLock lock = this.lock; in ArrayBlockingQueue() local
343 final ReentrantLock lock = this.lock; in offer() local
366 final ReentrantLock lock = this.lock; in put() local
390 final ReentrantLock lock = this.lock; in offer() local
406 final ReentrantLock lock = this.lock; in poll() local
416 final ReentrantLock lock = this.lock; in take() local
429 final ReentrantLock lock = this.lock; in poll() local
444 final ReentrantLock lock = this.lock; in peek() local
461 final ReentrantLock lock = this.lock; in size() local
[all …]
DPriorityBlockingQueue.java164 private final ReentrantLock lock = new ReentrantLock(); field in PriorityBlockingQueue
469 final ReentrantLock lock = this.lock; in offer() local
523 final ReentrantLock lock = this.lock; in poll() local
533 final ReentrantLock lock = this.lock; in take() local
547 final ReentrantLock lock = this.lock; in poll() local
560 final ReentrantLock lock = this.lock; in peek() local
583 final ReentrantLock lock = this.lock; in size() local
649 final ReentrantLock lock = this.lock; in remove() local
668 final ReentrantLock lock = this.lock; in removeEq() local
692 final ReentrantLock lock = this.lock; in contains() local
[all …]
DScheduledThreadPoolExecutor.java934 private final ReentrantLock lock = new ReentrantLock(); field in ScheduledThreadPoolExecutor.DelayedWorkQueue
1041 final ReentrantLock lock = this.lock; in contains() local
1051 final ReentrantLock lock = this.lock; in remove() local
1074 final ReentrantLock lock = this.lock; in size() local
1092 final ReentrantLock lock = this.lock; in peek() local
1105 final ReentrantLock lock = this.lock; in offer() local
1157 final ReentrantLock lock = this.lock; in poll() local
1170 final ReentrantLock lock = this.lock; in take() local
1206 final ReentrantLock lock = this.lock; in poll() local
1246 final ReentrantLock lock = this.lock; in clear() local
[all …]
DSubmissionPublisher.java239 final ReentrantLock lock; field in SubmissionPublisher
344 ReentrantLock lock = this.lock; in subscribe() local
401 ReentrantLock lock = this.lock; in doOffer() local
624 ReentrantLock lock = this.lock; in close() local
660 ReentrantLock lock = this.lock; in closeExceptionally() local
711 ReentrantLock lock = this.lock; in hasSubscribers() local
738 ReentrantLock lock = this.lock; in getNumberOfSubscribers() local
775 ReentrantLock lock = this.lock; in getSubscribers() local
809 ReentrantLock lock = this.lock; in isSubscribed() local
845 ReentrantLock lock = this.lock; in estimateMinimumDemand() 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/test/java/libcore/java/nio/channels/
DFileLockTest.java41 FileLock lock = fc.lock(0, 42, false); in testToString() local
60 FileLock lock = fc.lock(0, 42, true); in testToString() 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.java467 public abstract <A> void lock(long position, in lock() method in AsynchronousFileChannel
501 public final <A> void lock(A attachment, in lock() method in AsynchronousFileChannel
542 public abstract Future<FileLock> lock(long position, long size, boolean shared); in lock() method in AsynchronousFileChannel
566 public final Future<FileLock> lock() { in lock() method in AsynchronousFileChannel
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.cpp94 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in signalBlockedThreads() local
109 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in AsynchronousCloseMonitorImpl() local
124 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in ~AsynchronousCloseMonitorImpl() local
/libcore/ojluni/src/main/java/sun/nio/cs/
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()
DStreamEncoder.java50 Object lock, in forOutputStreamWriter()
65 Object lock, in forOutputStreamWriter()
72 Object lock, in forOutputStreamWriter()
186 private StreamEncoder(OutputStream out, Object lock, Charset cs) { in StreamEncoder()
193 private StreamEncoder(OutputStream out, Object lock, CharsetEncoder enc) { in StreamEncoder()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLock.java186 void lock(); in lock() method
/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()

1234