Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java28 static final int LOCKED = (1 << 31) | (1 << 15); field in AbstractQueuedSynchronizerTest.Mutex
34 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 …]
DAbstractQueuedLongSynchronizerTest.java25 static final long LOCKED = (1L << 63) | (1L << 15); field in AbstractQueuedLongSynchronizerTest.Mutex
31 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 …]