Home
last modified time | relevance | path

Searched refs:readLock (Results 1 – 16 of 16) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantReadWriteLockTest.java225 lock.readLock().lock(); in testLock()
228 lock.readLock().unlock(); in testLock()
275 lock.readLock().lock(); in testGetReadHoldCount()
279 lock.readLock().unlock(); in testGetReadHoldCount()
305 lock.readLock().unlock(); in testReadUnlock_IMSE()
361 lock.readLock().lockInterruptibly(); in testReadLockInterruptibly_Interruptible()
381 lock.readLock().tryLock(2 * LONG_DELAY_MS, MILLISECONDS); in testReadTryLock_Interruptible()
435 assertFalse(lock.readLock().tryLock()); in testReadTryLockWhenLocked()
449 lock.readLock().lock(); in testMultipleReadLocks()
452 assertTrue(lock.readLock().tryLock()); in testMultipleReadLocks()
[all …]
DStampedLockTest.java89 long rs = lock.readLock(); in testLock()
115 long rs = lock.readLock(); in testUnlock()
145 long rs = lock.readLock(); in testTryUnlock()
187 long s = lock.readLock(); in testWriteUnlock_IMSE3()
199 long s = lock.readLock(); in testReadUnlock_IMSE()
246 s = lock.readLock(); in testValidate()
412 final long s = lock.readLock(); in testMultipleReadLocks()
421 long s4 = lock.readLock(); in testMultipleReadLocks()
435 long rs = lock.readLock(); in testWriteAfterReadLock()
456 long s = lock.readLock(); in testWriteAfterMultipleReadLocks()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixSecureDirectoryStream.java118 ds.readLock().lock(); in newDirectoryStream()
145 ds.readLock().unlock(); in newDirectoryStream()
166 ds.readLock().lock(); in newByteChannel()
177 ds.readLock().unlock(); in newByteChannel()
196 ds.readLock().lock(); in implDelete()
226 ds.readLock().unlock(); in implDelete()
263 this.ds.readLock().lock(); in move()
265 that.ds.readLock().lock(); in move()
279 that.ds.readLock().unlock(); in move()
282 this.ds.readLock().unlock(); in move()
[all …]
DUnixDirectoryStream.java83 protected final Lock readLock() { in readLock() method in UnixDirectoryStream
84 return streamLock.readLock(); in readLock()
177 readLock().lock(); in readNextEntry()
186 readLock().unlock(); in readNextEntry()
/libcore/ojluni/src/main/java/java/io/
DConsole.java247 synchronized(readLock) { in readLine()
311 synchronized(readLock) { in readPassword()
364 private Object readLock; field in Console
398 assert Thread.holdsLock(readLock); in grow()
431 synchronized(readLock) { in read()
540 readLock = new Object(); in Console()
558 readLock, in Console()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousFileChannelImpl.java83 closeLock.readLock().lock(); in begin()
92 closeLock.readLock().unlock(); in end()
166 closeLock.readLock().lock(); in addToFileLockTable()
DAsynchronousSocketChannelImpl.java68 private final Object readLock = new Object(); field in AsynchronousSocketChannelImpl
116 closeLock.readLock().lock(); in begin()
125 closeLock.readLock().unlock(); in end()
148 synchronized (readLock) { in enableReading()
172 synchronized (readLock) { in killReading()
247 synchronized (readLock) { in read()
537 synchronized (readLock) { in shutdownInput()
DSocketChannelImpl.java85 private final Object readLock = new Object(); field in SocketChannelImpl
340 synchronized (readLock) { in read()
468 synchronized (readLock) { in read()
610 synchronized (readLock) { in bind()
660 synchronized (readLock) { in connect()
737 synchronized (readLock) { in finishConnect()
1007 synchronized (readLock) { in poll()
DEPollPort.java201 fdToChannelLock.readLock().lock(); in poll()
238 fdToChannelLock.readLock().unlock(); in poll()
DAsynchronousServerSocketChannelImpl.java83 closeLock.readLock().lock(); in begin()
92 closeLock.readLock().unlock(); in end()
DDatagramChannelImpl.java79 private final Object readLock = new Object(); field in DatagramChannelImpl
366 synchronized (readLock) { in receive()
580 synchronized (readLock) { in read()
609 synchronized (readLock) { in read()
707 synchronized (readLock) { in bind()
762 synchronized(readLock) { in connect()
814 synchronized(readLock) { in disconnect()
1152 synchronized (readLock) { in poll()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReadWriteLock.java125 Lock readLock(); in readLock() method
DStampedLock.java420 public long readLock() { in readLock() method in StampedLock
880 public void lock() { readLock(); } in lock()
912 public Lock readLock() { return asReadLock(); } in readLock() method in StampedLock.ReadWriteLockView
DReentrantReadWriteLock.java248 public ReentrantReadWriteLock.ReadLock readLock() { return readerLock; } in readLock() method in ReentrantReadWriteLock
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java111 private java.lang.Object readLock; field in Console
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java366 private Object readLock = new Object();
376 synchronized (readLock) {