Home
last modified time | relevance | path

Searched refs:tryLock (Results 1 – 15 of 15) sorted by relevance

/external/guava/guava/src/com/google/common/util/concurrent/
DMonitor.java375 if (!fair && lock.tryLock()) { in enter()
383 return lock.tryLock(timeoutNanos, TimeUnit.NANOSECONDS); in enter()
402 return lock.tryLock(time, unit); in enterInterruptibly()
413 return lock.tryLock(); in tryEnter()
478 if (fair || !lock.tryLock()) { in enterWhen()
480 if (!lock.tryLock(time, unit)) { in enterWhen()
522 if (fair || !lock.tryLock()) { in enterWhenUninterruptibly()
526 locked = lock.tryLock(timeoutNanos, TimeUnit.NANOSECONDS); in enterWhenUninterruptibly()
643 if (!lock.tryLock(time, unit)) { in enterIfInterruptibly()
670 if (!lock.tryLock()) { in tryEnterIf()
DCycleDetectingLockFactory.java836 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock
839 return super.tryLock(); in tryLock()
846 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantLock
850 return super.tryLock(timeout, unit); in tryLock()
943 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock
946 return super.tryLock(); in tryLock()
953 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantReadLock
957 return super.tryLock(timeout, unit); in tryLock()
1005 public boolean tryLock() { in tryLock() method in CycleDetectingLockFactory.CycleDetectingReentrantWriteLock
1008 return super.tryLock(); in tryLock()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java473 assertFalse(lockA.tryLock()); in testReentrantLock_tryLock()
476 assertTrue(lockA.tryLock()); in testReentrantLock_tryLock()
484 assertFalse(writeLockA.tryLock()); in testReentrantWriteLock_tryLock()
485 assertFalse(readLockA.tryLock()); in testReentrantWriteLock_tryLock()
488 assertTrue(writeLockA.tryLock()); in testReentrantWriteLock_tryLock()
489 assertTrue(readLockA.tryLock()); in testReentrantWriteLock_tryLock()
497 assertFalse(writeLockA.tryLock()); in testReentrantReadLock_tryLock()
498 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock()
502 assertTrue(writeLockA.tryLock()); in testReentrantReadLock_tryLock()
503 assertTrue(readLockA.tryLock()); in testReentrantReadLock_tryLock()
/external/deqp/framework/delibs/decpp/
DdeMutex.hpp45 bool tryLock (void) throw();
114 inline bool Mutex::tryLock (void) throw() in tryLock() function in de::Mutex
DdeThreadSafeRingBuffer.hpp110 if (!m_writeMutex.tryLock()) in tryPushFront()
139 if (!m_readMutex.tryLock()) in tryPopBack()
DdeBlockBuffer.hpp276 if (!m_writeLock.tryLock()) in tryWrite()
325 if (!m_writeLock.tryLock()) in tryFlush()
355 if (!m_readLock.tryLock()) in tryRead()
/external/deqp/framework/common/
DtcuApp.cpp226 if (!m_crashLock.tryLock() || m_crashed) in onWatchdogTimeout()
253 if (!m_crashLock.tryLock() || m_crashed) in onCrash()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtilemgr.h55 bool tryLock() in tryLock() function
57 return mFifo.tryLock(); in tryLock()
Dfifo.hpp71 bool tryLock() in tryLock() function
Dthreads.cpp540 if (tile->tryLock()) in WorkOnFifoBE()
/external/deqp/execserver/
DxsTcpServer.cpp126 if (m_connectionListLock.tryLock()) in ~TcpServer()
DxsExecutionServer.cpp114 if (!m_testDriverLock.tryLock()) in acquireTestDriver()
/external/deqp/framework/platform/ios/
DtcuIOSPlatform.mm50 if (!m_viewLock.tryLock())
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java2171 if (tryLock()) { in tryDrainReferenceQueues()
2328 if (tryLock()) { in tryExpireEntries()
3078 if (tryLock()) { in runLockedCleanup()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2460 if (tryLock()) { in tryDrainReferenceQueues()
2608 if (tryLock()) { in tryExpireEntries()
3446 if (tryLock()) { in runLockedCleanup()