Home
last modified time | relevance | path

Searched refs:tryWriteLock (Results 1 – 3 of 3) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DStampedLockTest.java249 assertTrue((s = lock.tryWriteLock()) != 0L); in testValidate()
255 assertTrue((s = lock.tryWriteLock(100L, MILLISECONDS)) != 0L); in testValidate()
272 assertFalse(lock.validate(lock.tryWriteLock())); in testValidate2()
273 assertFalse(lock.validate(lock.tryWriteLock(10L, MILLISECONDS))); in testValidate2()
311 lock.tryWriteLock(2 * LONG_DELAY_MS, MILLISECONDS); in testWriteTryLock_Interruptible()
367 long s = lock.tryWriteLock(); in testWriteTryLock()
370 long s2 = lock.tryWriteLock(); in testWriteTryLock()
383 long ws = lock.tryWriteLock(); in testWriteTryLockWhenLocked()
524 long ws = lock.tryWriteLock(); in testWriteTryLockWhenReadLocked()
542 long ws = lock.tryWriteLock(timeoutMillis, MILLISECONDS); in testWriteTryLock_Timeout()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java359 public long tryWriteLock() { in tryWriteLock() method in StampedLock
379 public long tryWriteLock(long time, TimeUnit unit) in tryWriteLock() method in StampedLock
384 if ((next = tryWriteLock()) != 0L) in tryWriteLock()
900 public boolean tryLock() { return tryWriteLock() != 0L; } in tryLock()
903 return tryWriteLock(time, unit) != 0L; in tryLock()
DReentrantReadWriteLock.java557 final boolean tryWriteLock() { in tryWriteLock() method in ReentrantReadWriteLock.Sync
1038 return sync.tryWriteLock(); in tryLock()