Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantReadWriteLockTest.java29 lock.writeLock().lockInterruptibly(); in realRun()
41 lock.writeLock().lockInterruptibly(); in realRun()
66 ReentrantReadWriteLock.WriteLock writeLock = lock.writeLock(); in releaseWriteLock() local
69 writeLock.unlock(); in releaseWriteLock()
93 assertFalse(lock.writeLock().isHeldByCurrentThread()); in assertNotWriteLocked()
95 assertEquals(0, lock.writeLock().getHoldCount()); in assertNotWriteLocked()
108 lock.writeLock().isHeldByCurrentThread()); in assertWriteLockedBy()
112 lock.writeLock().getHoldCount() > 0); in assertWriteLockedBy()
135 lock.writeLock().lock(); in assertHasWaiters()
142 lock.writeLock().unlock(); in assertHasWaiters()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReadWriteLock.java103 Lock writeLock(); in writeLock() method
DReentrantReadWriteLock.java217 public ReentrantReadWriteLock.WriteLock writeLock() { return writerLock; } in writeLock() method in ReentrantReadWriteLock
/libcore/luni/src/main/java/java/nio/
DDatagramChannelImpl.java76 private final Object writeLock = new Object(); field in DatagramChannelImpl
302 synchronized (writeLock) { in send()
434 synchronized (writeLock) { in writeImpl()
DSocketChannelImpl.java90 private final Object writeLock = new Object(); field in SocketChannelImpl
394 synchronized (writeLock) { in writeImpl()