Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantReadWriteLockTest.java44 lock.writeLock().lockInterruptibly(); in realRun()
56 lock.writeLock().lockInterruptibly(); in realRun()
81 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock(); in releaseWriteLock() local
84 writeLock.unlock(); in releaseWriteLock()
108 assertFalse(lock.writeLock().isHeldByCurrentThread()); in assertNotWriteLocked()
110 assertEquals(0, lock.writeLock().getHoldCount()); in assertNotWriteLocked()
123 lock.writeLock().isHeldByCurrentThread()); in assertWriteLockedBy()
127 lock.writeLock().getHoldCount() > 0); in assertWriteLockedBy()
150 lock.writeLock().lock(); in assertHasWaiters()
157 lock.writeLock().unlock(); in assertHasWaiters()
[all …]
DStampedLockTest.java81 long s = lock.writeLock(); in testLock()
107 long s = lock.writeLock(); in testUnlock()
134 long s = lock.writeLock(); in testTryUnlock()
174 long s = lock.writeLock(); in testWriteUnlock_IMSE2()
223 long s = lock.writeLock(); in testReadUnlock_IMSE3()
243 long s = lock.writeLock(); in testValidate()
270 assertTrue((s = lock.writeLock()) != 0L); in testValidate2()
287 long s = lock.writeLock(); in testWriteLockInterruptibly_Interruptible()
307 long s = lock.writeLock(); in testWriteTryLock_Interruptible()
328 long s = lock.writeLock(); in testReadLockInterruptibly_Interruptible()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DPort.java65 fdToChannelLock.writeLock().lock(); in register()
71 fdToChannelLock.writeLock().unlock(); in register()
91 fdToChannelLock.writeLock().lock(); in unregister()
100 fdToChannelLock.writeLock().unlock(); in unregister()
118 fdToChannelLock.writeLock().lock(); in isEmpty()
122 fdToChannelLock.writeLock().unlock(); in isEmpty()
154 fdToChannelLock.writeLock().lock(); in closeAllChannels()
163 fdToChannelLock.writeLock().unlock(); in closeAllChannels()
DAsynchronousSocketChannelImpl.java74 private final Object writeLock = new Object(); field in AsynchronousSocketChannelImpl
136 closeLock.writeLock().lock(); in close()
142 closeLock.writeLock().unlock(); in close()
160 synchronized (writeLock) { in enableWriting()
178 synchronized (writeLock) { in killWriting()
348 synchronized (writeLock) { in write()
555 synchronized (writeLock) { in shutdownOutput()
DSocketChannelImpl.java88 private final Object writeLock = new Object(); field in SocketChannelImpl
501 synchronized (writeLock) { in write()
534 synchronized (writeLock) { in write()
564 synchronized (writeLock) { in sendOutOfBandData()
611 synchronized (writeLock) { in bind()
661 synchronized (writeLock) { in connect()
738 synchronized (writeLock) { in finishConnect()
DAsynchronousServerSocketChannelImpl.java103 closeLock.writeLock().lock(); in close()
109 closeLock.writeLock().unlock(); in close()
DDatagramChannelImpl.java82 private final Object writeLock = new Object(); field in DatagramChannelImpl
456 synchronized (writeLock) { in send()
624 synchronized (writeLock) { in write()
653 synchronized (writeLock) { in write()
696 synchronized (writeLock) { in bind()
751 synchronized(writeLock) { in connect()
803 synchronized(writeLock) { in disconnect()
DSimpleAsynchronousFileChannelImpl.java94 closeLock.writeLock().lock(); in close()
98 closeLock.writeLock().unlock(); in close()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixDirectoryStream.java87 protected final Lock writeLock() { in writeLock() method in UnixDirectoryStream
88 return streamLock.writeLock(); in writeLock()
116 writeLock().lock(); in close()
120 writeLock().unlock(); in close()
DUnixSecureDirectoryStream.java75 ds.writeLock().lock(); in close()
81 ds.writeLock().unlock(); in close()
/libcore/ojluni/src/main/java/java/io/
DConsole.java246 synchronized (writeLock) { in readLine()
310 synchronized (writeLock) { in readPassword()
365 private Object writeLock; field in Console
541 writeLock = new Object(); in Console()
552 writeLock, in Console()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReadWriteLock.java132 Lock writeLock(); in writeLock() method
DStampedLock.java346 public long writeLock() { in writeLock() method in StampedLock
896 public void lock() { writeLock(); } in lock()
913 public Lock writeLock() { return asWriteLock(); } in writeLock() method in StampedLock.ReadWriteLockView
DReentrantReadWriteLock.java247 public ReentrantReadWriteLock.WriteLock writeLock() { return writerLock; } in writeLock() method in ReentrantReadWriteLock
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java115 private java.lang.Object writeLock; field in Console
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java435 private Object writeLock = new Object();
444 synchronized (writeLock) {