Home
last modified time | relevance | path

Searched refs:writeLock (Results 1 – 15 of 15) 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 …]
/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
468 synchronized (writeLock) { in send()
636 synchronized (writeLock) { in write()
665 synchronized (writeLock) { in write()
708 synchronized (writeLock) { in bind()
763 synchronized(writeLock) { in connect()
815 synchronized(writeLock) { in disconnect()
DSimpleAsynchronousFileChannelImpl.java94 closeLock.writeLock().lock(); in close()
98 closeLock.writeLock().unlock(); in close()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java57 lock.writeLock().lock(); in run()
58 lock.writeLock().unlock(); in run()
103 lock.writeLock().lock(); in testGetQueuedReaderThreads()
111 lock.writeLock().unlock(); in testGetQueuedReaderThreads()
122 lock.writeLock().lock(); in testGetQueuedWriterThreads()
130 lock.writeLock().unlock(); in testGetQueuedWriterThreads()
/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/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) {