Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/concurrent/tck/
DReentrantReadWriteLockTest.java67 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 …]
DStampedLockTest.java135 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/
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
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/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) {
/libcore/api/
Dcurrent.txt15536 method public java.util.concurrent.locks.Lock writeLock();
15582 method public java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock();
15631 method public long writeLock();