Searched refs:tryWriteLock (Results 1 – 3 of 3) sorted by relevance
249 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 …]
359 public long tryWriteLock() { in tryWriteLock() method in StampedLock379 public long tryWriteLock(long time, TimeUnit unit) in tryWriteLock() method in StampedLock384 if ((next = tryWriteLock()) != 0L) in tryWriteLock()900 public boolean tryLock() { return tryWriteLock() != 0L; } in tryLock()903 return tryWriteLock(time, unit) != 0L; in tryLock()
557 final boolean tryWriteLock() { in tryWriteLock() method in ReentrantReadWriteLock.Sync1038 return sync.tryWriteLock(); in tryLock()