Searched refs:LOCKED (Results 1 – 2 of 2) sorted by relevance
28 static final int LOCKED = (1 << 31) | (1 << 15); field in AbstractQueuedSynchronizerTest.Mutex34 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()35 return state == LOCKED; in isHeldExclusively()39 assertEquals(LOCKED, acquires); in tryAcquire()40 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()44 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()45 assertEquals(LOCKED, releases); in tryRelease()51 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()55 return tryAcquire(LOCKED); in tryAcquire()59 return tryRelease(LOCKED); in tryRelease()[all …]
25 static final long LOCKED = (1L << 63) | (1L << 15); field in AbstractQueuedLongSynchronizerTest.Mutex31 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()32 return state == LOCKED; in isHeldExclusively()36 assertEquals(LOCKED, acquires); in tryAcquire()37 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()41 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()47 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()51 return tryAcquire(LOCKED); in tryAcquire()55 return tryRelease(LOCKED); in tryRelease()59 acquire(LOCKED); in acquire()[all …]