Home
last modified time | relevance | path

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

/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()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueuedSynchronizerTest.java67 static final int LOCKED = (1 << 31) | (1 << 15); field in AbstractQueuedSynchronizerTest.Mutex
73 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()
74 return state == LOCKED; in isHeldExclusively()
78 assertEquals(LOCKED, acquires); in tryAcquire()
79 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
83 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
84 assertEquals(LOCKED, releases); in tryRelease()
90 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()
94 return tryAcquire(LOCKED); in tryAcquire()
98 return tryRelease(LOCKED); in tryRelease()
[all …]
DAbstractQueuedLongSynchronizerTest.java64 static final long LOCKED = (1L << 63) | (1L << 15); field in AbstractQueuedLongSynchronizerTest.Mutex
70 assertTrue(state == UNLOCKED || state == LOCKED); in isHeldExclusively()
71 return state == LOCKED; in isHeldExclusively()
75 assertEquals(LOCKED, acquires); in tryAcquire()
76 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
80 if (getState() != LOCKED) throw new IllegalMonitorStateException(); in tryRelease()
86 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()
90 return tryAcquire(LOCKED); in tryAcquire()
94 return tryRelease(LOCKED); in tryRelease()
98 acquire(LOCKED); in acquire()
[all …]
/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 …]