/external/gwp_asan/gwp_asan/tests/ |
D | mutex_test.cpp | 23 ASSERT_TRUE(Mu.tryLock()); in TEST() 24 ASSERT_FALSE(Mu.tryLock()); in TEST() 31 ASSERT_TRUE(Mu.tryLock()); in TEST() 39 EXPECT_TRUE(Mu.tryLock()); in TEST() 44 EXPECT_FALSE(Mu.tryLock()); // Check that the c'tor did lock. in TEST() 48 EXPECT_TRUE(Mu.tryLock()); // Manually lock. in TEST() 50 EXPECT_TRUE(Mu.tryLock()); // Assert that the scoped destructor did unlock. in TEST()
|
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/ |
D | mutex_test.cpp | 23 ASSERT_TRUE(Mu.tryLock()); in TEST() 24 ASSERT_FALSE(Mu.tryLock()); in TEST() 31 ASSERT_TRUE(Mu.tryLock()); in TEST() 39 EXPECT_TRUE(Mu.tryLock()); in TEST() 44 EXPECT_FALSE(Mu.tryLock()); // Check that the c'tor did lock. in TEST() 48 EXPECT_TRUE(Mu.tryLock()); // Manually lock. in TEST() 50 EXPECT_TRUE(Mu.tryLock()); // Assert that the scoped destructor did unlock. in TEST()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | ForwardingLock.java | 36 public boolean tryLock() { in tryLock() method in ForwardingLock 37 return delegate().tryLock(); in tryLock() 41 public boolean tryLock(long time, TimeUnit unit) throws InterruptedException { in tryLock() method in ForwardingLock 42 return delegate().tryLock(time, unit); in tryLock()
|
D | CycleDetectingLockFactory.java | 779 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock 782 return super.tryLock(); in tryLock() 789 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock 792 return super.tryLock(timeout, unit); in tryLock() 882 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock 885 return super.tryLock(); in tryLock() 892 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock 895 return super.tryLock(timeout, unit); in tryLock() 941 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantWriteLock 944 return super.tryLock(); in tryLock() [all …]
|
D | Monitor.java | 406 if (!fair && lock.tryLock()) { 414 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); 455 return lock.tryLock(time, unit); 466 return lock.tryLock(); 533 if (lock.tryLock()) { 538 if (!lock.tryLock(time, unit)) { 618 if (fair || !lock.tryLock()) { 622 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { 775 if (!lock.tryLock(time, unit)) { 802 if (!lock.tryLock()) {
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | ForwardingLock.java | 36 public boolean tryLock() { in tryLock() method in ForwardingLock 37 return delegate().tryLock(); in tryLock() 41 public boolean tryLock(long time, TimeUnit unit) throws InterruptedException { in tryLock() method in ForwardingLock 42 return delegate().tryLock(time, unit); in tryLock()
|
D | Monitor.java | 376 if (!fair && lock.tryLock()) { in enter() 384 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); in enter() 414 return lock.tryLock(time, unit); in enterInterruptibly() 425 return lock.tryLock(); in tryEnter() 479 if (lock.tryLock()) { in enterWhen() 484 if (!lock.tryLock(time, unit)) { in enterWhen() 553 if (fair || !lock.tryLock()) { in enterWhenUninterruptibly() 557 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { in enterWhenUninterruptibly() 688 if (!lock.tryLock(time, unit)) { in enterIfInterruptibly() 715 if (!lock.tryLock()) { in tryEnterIf()
|
D | CycleDetectingLockFactory.java | 780 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock 783 return super.tryLock(); in tryLock() 790 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock 793 return super.tryLock(timeout, unit); in tryLock() 883 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock 886 return super.tryLock(); in tryLock() 893 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock 896 return super.tryLock(timeout, unit); in tryLock() 942 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantWriteLock 945 return super.tryLock(); in tryLock() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | mutex.h | 26 bool tryLock(); 28 if (LIKELY(tryLock())) in lock() 39 if (tryLock()) in lock()
|
D | tsd.h | 42 inline bool tryLock() { in tryLock() function 43 if (Mutex.tryLock()) { in tryLock()
|
/external/scudo/standalone/ |
D | mutex.h | 26 bool tryLock(); 28 if (LIKELY(tryLock())) in lock() 39 if (tryLock()) in lock()
|
D | tsd.h | 42 inline bool tryLock() { in tryLock() function 43 if (Mutex.tryLock()) { in tryLock()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/sync/ |
D | MutexTest.kt | 37 assertTrue(mutex.tryLock()) in tryLockTest() 39 assertFalse(mutex.tryLock()) in tryLockTest() 43 assertTrue(mutex.tryLock()) in tryLockTest() 45 assertFalse(mutex.tryLock()) in tryLockTest()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactoryTest.java | 449 assertFalse(lockA.tryLock()); in testReentrantLock_tryLock() 452 assertTrue(lockA.tryLock()); in testReentrantLock_tryLock() 460 assertFalse(writeLockA.tryLock()); in testReentrantWriteLock_tryLock() 461 assertFalse(readLockA.tryLock()); in testReentrantWriteLock_tryLock() 464 assertTrue(writeLockA.tryLock()); in testReentrantWriteLock_tryLock() 465 assertTrue(readLockA.tryLock()); in testReentrantWriteLock_tryLock() 473 assertFalse(writeLockA.tryLock()); in testReentrantReadLock_tryLock() 474 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock() 478 assertTrue(writeLockA.tryLock()); in testReentrantReadLock_tryLock() 479 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | CycleDetectingLockFactoryTest.java | 449 assertFalse(lockA.tryLock()); in testReentrantLock_tryLock() 452 assertTrue(lockA.tryLock()); in testReentrantLock_tryLock() 460 assertFalse(writeLockA.tryLock()); in testReentrantWriteLock_tryLock() 461 assertFalse(readLockA.tryLock()); in testReentrantWriteLock_tryLock() 464 assertTrue(writeLockA.tryLock()); in testReentrantWriteLock_tryLock() 465 assertTrue(readLockA.tryLock()); in testReentrantWriteLock_tryLock() 473 assertFalse(writeLockA.tryLock()); in testReentrantReadLock_tryLock() 474 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock() 478 assertTrue(writeLockA.tryLock()); in testReentrantReadLock_tryLock() 479 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/ |
D | MutexLCStressTest.kt | 17 fun tryLock() = mutex.tryLock() method in kotlinx.coroutines.linearizability.MutexLCStressTest
|
/external/deqp/framework/delibs/decpp/ |
D | deMutex.hpp | 45 bool tryLock (void) throw(); 114 inline bool Mutex::tryLock (void) throw() in tryLock() function in de::Mutex
|
D | deThreadSafeRingBuffer.hpp | 110 if (!m_writeMutex.tryLock()) in tryPushFront() 139 if (!m_readMutex.tryLock()) in tryPopBack()
|
D | deBlockBuffer.hpp | 276 if (!m_writeLock.tryLock()) in tryWrite() 325 if (!m_writeLock.tryLock()) in tryFlush() 355 if (!m_readLock.tryLock()) in tryRead()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/src/ |
D | RxObservable.kt | 75 if (!mutex.tryLock()) return false in close() 134 if (!isActive && mutex.tryLock()) in unlockAndCheckCompleted() 177 if (mutex.tryLock()) // if we can acquire the lock in signalCompleted()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/src/ |
D | RxObservable.kt | 89 if (!mutex.tryLock()) return false in close() 148 if (!isActive && mutex.tryLock()) in unlockAndCheckCompleted() 191 if (mutex.tryLock()) // if we can acquire the lock in signalCompleted()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/selects/ |
D | SelectPhilosophersStressTest.kt | 26 if (pair.second.tryLock(desc)) break in <lambda>() 29 if (pair.first.tryLock(desc)) break in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/src/ |
D | Publish.kt | 100 if (!mutex.tryLock()) return false in close() 187 if (isCompleted && mutex.tryLock()) { in unlockAndCheckCompleted() 268 if (mutex.tryLock()) doLockedSignalCompleted(cause, handled) in signalCompleted()
|
/external/kotlinx.atomicfu/atomicfu/src/nativeTest/kotlin/kotlinx/atomicfu/locks/ |
D | SynchronizedTest.kt | 78 while (!lock.tryLock()) {} in <lambda>() 106 assertTrue(lock.tryLock()) in <lambda>()
|
/external/gwp_asan/gwp_asan/platform_specific/ |
D | mutex_fuchsia.cpp | 16 bool Mutex::tryLock() __TA_NO_THREAD_SAFETY_ANALYSIS { in tryLock() function in gwp_asan::Mutex
|