Home
last modified time | relevance | path

Searched refs:ReentrantReadWriteLock (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java25 import java.util.concurrent.locks.ReentrantReadWriteLock;
35 final ReentrantReadWriteLock lock;
37 ReadLockRunnable(ReentrantReadWriteLock lock) { in ReadLockRunnable()
49 final ReentrantReadWriteLock lock;
51 WriteLockRunnable(ReentrantReadWriteLock lock) { in WriteLockRunnable()
62 static class DefaultReentrantReadWriteLock extends ReentrantReadWriteLock {
88 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); in testReadLockCondition()
/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantReadWriteLockTest.java20 import java.util.concurrent.locks.ReentrantReadWriteLock;
41 final ReentrantReadWriteLock lock;
42 InterruptibleLockRunnable(ReentrantReadWriteLock l) { lock = l; } in InterruptibleLockRunnable()
53 final ReentrantReadWriteLock lock;
54 InterruptedLockRunnable(ReentrantReadWriteLock l) { lock = l; } in InterruptedLockRunnable()
63 static class PublicReentrantReadWriteLock extends ReentrantReadWriteLock {
81 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock(); in releaseWriteLock()
239 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetWriteHoldCount()
256 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetHoldCount()
273 ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetReadHoldCount()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DReentrantReadWriteLockTest.java46 import java.util.concurrent.locks.ReentrantReadWriteLock;
64 final ReentrantReadWriteLock lock;
65 InterruptibleLockRunnable(ReentrantReadWriteLock l) { lock = l; } in InterruptibleLockRunnable()
76 final ReentrantReadWriteLock lock;
77 InterruptedLockRunnable(ReentrantReadWriteLock l) { lock = l; } in InterruptedLockRunnable()
86 static class PublicReentrantReadWriteLock extends ReentrantReadWriteLock {
104 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock(); in releaseWriteLock()
262 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetWriteHoldCount()
279 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetHoldCount()
296 final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(fair); in testGetReadHoldCount()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantReadWriteLock.java216 public class ReentrantReadWriteLock class
220 private final ReentrantReadWriteLock.ReadLock readerLock;
222 private final ReentrantReadWriteLock.WriteLock writerLock;
230 public ReentrantReadWriteLock() { in ReentrantReadWriteLock() method in ReentrantReadWriteLock
240 public ReentrantReadWriteLock(boolean fair) { in ReentrantReadWriteLock() method in ReentrantReadWriteLock
246 public ReentrantReadWriteLock.WriteLock writeLock() { return writerLock; } in writeLock()
247 public ReentrantReadWriteLock.ReadLock readLock() { return readerLock; } in readLock()
723 protected ReadLock(ReentrantReadWriteLock lock) { in ReadLock()
937 protected WriteLock(ReentrantReadWriteLock lock) { in WriteLock()
/libcore/ojluni/src/main/java/sun/nio/ch/
DPort.java36 import java.util.concurrent.locks.ReentrantReadWriteLock;
52 protected final ReadWriteLock fdToChannelLock = new ReentrantReadWriteLock();
DAsynchronousServerSocketChannelImpl.java40 import java.util.concurrent.locks.ReentrantReadWriteLock;
60 private ReadWriteLock closeLock = new ReentrantReadWriteLock();
DAsynchronousFileChannelImpl.java44 protected final ReadWriteLock closeLock = new ReentrantReadWriteLock();
DAsynchronousSocketChannelImpl.java80 private final ReadWriteLock closeLock = new ReentrantReadWriteLock();
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixDirectoryStream.java55 private final ReentrantReadWriteLock streamLock =
56 new ReentrantReadWriteLock(true);
/libcore/expectations/
Dknownfailures.txt36 "java.util.concurrent.locks.ReentrantReadWriteLock.MapLoops",
/libcore/api/
Dcurrent.txt16989 …public class ReentrantReadWriteLock implements java.util.concurrent.locks.ReadWriteLock java.io.Se…
16990 ctor public ReentrantReadWriteLock();
16991 ctor public ReentrantReadWriteLock(boolean);
17008 method public java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock();
17009 method public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock();
17012 …public static class ReentrantReadWriteLock.ReadLock implements java.util.concurrent.locks.Lock jav…
17013 … ctor protected ReentrantReadWriteLock.ReadLock(java.util.concurrent.locks.ReentrantReadWriteLock);
17022 …public static class ReentrantReadWriteLock.WriteLock implements java.util.concurrent.locks.Lock ja…
17023 …ctor protected ReentrantReadWriteLock.WriteLock(java.util.concurrent.locks.ReentrantReadWriteLock);
/libcore/
Dopenjdk_java_files.bp1057 "ojluni/src/main/java/java/util/concurrent/locks/ReentrantReadWriteLock.java",
DEXPECTED_UPSTREAM1108 …urrent/locks/ReentrantReadWriteLock.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java/uti…