Searched refs:mutex (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | AbstractQueuedSynchronizerTest.java | 66 DefaultMutex mutex = new DefaultMutex(); in testDefaultIsHeldExclusivelyFails() local 68 mutex.isHeldExclusively(); in testDefaultIsHeldExclusivelyFails() 78 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryAcquireFails() local 80 mutex.tryAcquire(1); in testDefaultTryAcquireFails() 90 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryAcquireSharedFails() local 92 mutex.tryAcquireShared(1); in testDefaultTryAcquireSharedFails() 102 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryReleaseFails() local 104 mutex.tryRelease(1); in testDefaultTryReleaseFails() 114 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryReleaseSharedFails() local 116 mutex.tryReleaseShared(1); in testDefaultTryReleaseSharedFails() [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 66 DefaultMutex mutex = new DefaultMutex(); in testDefaultIsHeldExclusivelyFails() local 68 mutex.isHeldExclusively(); in testDefaultIsHeldExclusivelyFails() 78 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryAcquireFails() local 80 mutex.tryAcquire(1); in testDefaultTryAcquireFails() 90 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryAcquireSharedFails() local 92 mutex.tryAcquireShared(1); in testDefaultTryAcquireSharedFails() 102 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryReleaseFails() local 104 mutex.tryRelease(1); in testDefaultTryReleaseFails() 114 DefaultMutex mutex = new DefaultMutex(); in testDefaultTryReleaseSharedFails() local 116 mutex.tryReleaseShared(1); in testDefaultTryReleaseSharedFails() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 2338 static <T> Collection<T> synchronizedCollection(Collection<T> c, Object mutex) { 2339 return new SynchronizedCollection<>(c, mutex); 2352 final Object mutex; // Object on which to synchronize 2356 mutex = this; 2359 SynchronizedCollection(Collection<E> c, Object mutex) { 2361 this.mutex = Objects.requireNonNull(mutex); 2365 synchronized (mutex) {return c.size();} 2368 synchronized (mutex) {return c.isEmpty();} 2371 synchronized (mutex) {return c.contains(o);} 2374 synchronized (mutex) {return c.toArray();} [all …]
|
/libcore/luni/src/main/native/ |
D | AsynchronousCloseMonitor.cpp | 60 static std::mutex blockedThreadListMutex; 94 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in signalBlockedThreads() 109 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in AsynchronousCloseMonitorImpl() 124 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in ~AsynchronousCloseMonitorImpl()
|
D | JniConstants.cpp | 41 static std::mutex g_constants_mutex;
|
/libcore/ojluni/src/main/native/ |
D | JniConstants.cpp | 45 static std::mutex g_constants_mutex;
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 194 java.util.Collection<T> c, java.lang.Object mutex) { in synchronizedCollection() argument 202 static <T> java.util.Set<T> synchronizedSet(java.util.Set<T> s, java.lang.Object mutex) { in synchronizedSet() argument 219 static <T> java.util.List<T> synchronizedList(java.util.List<T> list, java.lang.Object mutex) { in synchronizedList() argument 2189 SynchronizedCollection(java.util.Collection<E> c, java.lang.Object mutex) { in SynchronizedCollection() argument 2280 final java.lang.Object mutex; field in Collections.SynchronizedCollection 2283 mutex = null; 2298 SynchronizedList(java.util.List<E> list, java.lang.Object mutex) { in SynchronizedList() argument 2381 SynchronizedMap(java.util.Map<K, V> m, java.lang.Object mutex) { in SynchronizedMap() argument 2516 final java.lang.Object mutex; field in Collections.SynchronizedMap 2519 mutex = null; [all …]
|