Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java42 static class Mutex extends AbstractQueuedSynchronizer { class in AbstractQueuedSynchronizerTest
116 final Mutex sync;
117 InterruptibleSyncRunnable(Mutex sync) { this.sync = sync; } in InterruptibleSyncRunnable()
128 final Mutex sync;
129 InterruptedSyncRunnable(Mutex sync) { this.sync = sync; } in InterruptedSyncRunnable()
193 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked()
203 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked()
280 Mutex sync = new Mutex(); in testIsHeldExclusively()
288 Mutex sync = new Mutex(); in testAcquire()
299 Mutex sync = new Mutex(); in testTryAcquire()
[all …]
DAbstractQueuedLongSynchronizerTest.java39 static class Mutex extends AbstractQueuedLongSynchronizer { class in AbstractQueuedLongSynchronizerTest
112 final Mutex sync;
113 InterruptibleSyncRunnable(Mutex sync) { this.sync = sync; } in InterruptibleSyncRunnable()
124 final Mutex sync;
125 InterruptedSyncRunnable(Mutex sync) { this.sync = sync; } in InterruptedSyncRunnable()
190 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked()
200 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked()
277 Mutex sync = new Mutex(); in testIsHeldExclusively()
285 Mutex sync = new Mutex(); in testAcquire()
296 Mutex sync = new Mutex(); in testTryAcquire()
[all …]