Searched refs:UNLOCKED (Results 1 – 2 of 2) sorted by relevance
27 static final long UNLOCKED = 0; field in AbstractQueuedLongSynchronizerTest.Mutex31 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()37 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()42 setState(UNLOCKED); in tryRelease()1045 assertTrue(sync.toString().contains("State = " + Mutex.UNLOCKED));
30 static final int UNLOCKED = 0; field in AbstractQueuedSynchronizerTest.Mutex34 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()40 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()46 setState(UNLOCKED); in tryRelease()1048 assertTrue(sync.toString().contains("State = " + Mutex.UNLOCKED));