Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java44 static final int LOCKED = (1 << 31) | (1 << 15); field in AbstractQueuedSynchronizerTest.Mutex
50 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 …]
DAbstractQueuedLongSynchronizerTest.java41 static final long LOCKED = (1L << 63) | (1L << 15); field in AbstractQueuedLongSynchronizerTest.Mutex
47 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 …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcher.java35 public static final int LOCKED = 0; // Obtained requested lock field in FileDispatcher
DSimpleAsynchronousFileChannelImpl.java208 if (n != FileDispatcher.LOCKED || !isOpen()) { in implLock()
264 if (n == FileDispatcher.LOCKED && isOpen()) { in tryLock()