Searched refs:LOCKED (Results 1 – 4 of 4) sorted by relevance
44 static final int LOCKED = (1 << 31) | (1 << 15); field in AbstractQueuedSynchronizerTest.Mutex50 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()51 return state == LOCKED; in isHeldExclusively()55 assertEquals(LOCKED, acquires); in tryAcquire()56 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()60 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()61 assertEquals(LOCKED, releases); in tryRelease()67 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()71 return tryAcquire(LOCKED); in tryAcquire()75 return tryRelease(LOCKED); in tryRelease()[all …]
41 static final long LOCKED = (1L << 63) | (1L << 15); field in AbstractQueuedLongSynchronizerTest.Mutex47 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()48 return state == LOCKED; in isHeldExclusively()52 assertEquals(LOCKED, acquires); in tryAcquire()53 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()57 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()63 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()67 return tryAcquire(LOCKED); in tryAcquire()71 return tryRelease(LOCKED); in tryRelease()75 acquire(LOCKED); in acquire()[all …]
35 public static final int LOCKED = 0; // Obtained requested lock field in FileDispatcher
208 if (n != FileDispatcher.LOCKED || !isOpen()) { in implLock()264 if (n == FileDispatcher.LOCKED && isOpen()) { in tryLock()