/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ReentrantReadWriteLockTest.java | 44 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/ |
D | Port.java | 65 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()
|
D | AsynchronousSocketChannelImpl.java | 74 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()
|
D | SocketChannelImpl.java | 88 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()
|
D | AsynchronousServerSocketChannelImpl.java | 103 closeLock.writeLock().lock(); in close() 109 closeLock.writeLock().unlock(); in close()
|
D | DatagramChannelImpl.java | 82 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()
|
D | SimpleAsynchronousFileChannelImpl.java | 94 closeLock.writeLock().lock(); in close() 98 closeLock.writeLock().unlock(); in close()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ReentrantReadWriteLockTest.java | 57 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/ |
D | UnixDirectoryStream.java | 87 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()
|
D | UnixSecureDirectoryStream.java | 75 ds.writeLock().lock(); in close() 81 ds.writeLock().unlock(); in close()
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | ReadWriteLock.java | 132 Lock writeLock(); in writeLock() method
|
D | StampedLock.java | 346 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
|
D | ReentrantReadWriteLock.java | 247 public ReentrantReadWriteLock.WriteLock writeLock() { return writerLock; } in writeLock() method in ReentrantReadWriteLock
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | Console.java | 115 private java.lang.Object writeLock; field in Console
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 435 private Object writeLock = new Object(); 444 synchronized (writeLock) {
|