Home
last modified time | relevance | path

Searched refs:UNLOCKED (Results 1 – 2 of 2) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedLongSynchronizerTest.java27 static final long UNLOCKED = 0; field in AbstractQueuedLongSynchronizerTest.Mutex
31 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));
DAbstractQueuedSynchronizerTest.java30 static final int UNLOCKED = 0; field in AbstractQueuedSynchronizerTest.Mutex
34 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));