/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ReentrantReadWriteLockTest.java | 67 lock.writeLock().lockInterruptibly(); in realRun() 79 lock.writeLock().lockInterruptibly(); in realRun() 104 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock(); in releaseWriteLock() local 107 writeLock.unlock(); in releaseWriteLock() 131 assertFalse(lock.writeLock().isHeldByCurrentThread()); in assertNotWriteLocked() 133 assertEquals(0, lock.writeLock().getHoldCount()); in assertNotWriteLocked() 146 lock.writeLock().isHeldByCurrentThread()); in assertWriteLockedBy() 150 lock.writeLock().getHoldCount() > 0); in assertWriteLockedBy() 173 lock.writeLock().lock(); in assertHasWaiters() 180 lock.writeLock().unlock(); in assertHasWaiters() [all …]
|
D | StampedLockTest.java | 135 writeLockers.add(sl -> sl.writeLock()); in writeLockers() 276 long s = assertNonZero(lock.writeLock()); in testValidate2() 323 long s = lock.writeLock(); in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() 368 long s = lock.writeLock(); in testInterruptibleOperationsThrowInterruptedExceptionWriteLockedInterrupted() 421 long s = assertValid(lock, lock.writeLock()); in testNonInterruptibleOperationsIgnoreInterrupts() 450 long s = lock.writeLock(); in testTryWriteLockWhenLocked() 466 long s = lock.writeLock(); in testTryReadLockWhenLocked() 516 long s = lock.writeLock(); in testWriteAfterReadLock() 547 long ws = lock.writeLock(); in testWriteAfterMultipleReadLocks() 564 final long s = lock.writeLock(); in testReadAfterWriteLock() [all …]
|
/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 …]
|
D | StampedLockTest.java | 81 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/ |
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/io/ |
D | Console.java | 246 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/ |
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) {
|
/libcore/api/ |
D | current.txt | 15536 method public java.util.concurrent.locks.Lock writeLock(); 15582 method public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock(); 15631 method public long writeLock();
|