Searched refs:tryLock (Results 1 - 25 of 33) sorted by relevance

12

/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DMutex.h82 ** Function: tryLock
89 bool tryLock ();
H A DMutex.cpp109 ** Function: tryLock
116 bool Mutex::tryLock () function in class:Mutex
121 ALOGE ("Mutex::tryLock: error=0x%X", res);
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
H A DFileChannelLockingTest.java159 readOnlyChannel.tryLock();
169 readOnlyChannel.tryLock(0, 99, false);
177 readOnlyChannel.tryLock(-99, 0, true);
184 FileLock tmpLock = readOnlyChannel.tryLock(0, 10, true);
189 FileLock lock = readOnlyChannel.tryLock(10, 788, true);
194 readOnlyChannel.tryLock(1, 23, true);
201 FileLock adjacentLock = readOnlyChannel.tryLock(1, 3, true);
H A DFileChannelTest.java863 * @tests java.nio.channels.FileChannel#tryLock()
867 // Verify that calling tryLock() leads to the method
868 // tryLock(long, long, boolean) being called with a 0 for the
871 mockFileChannel.tryLock();
876 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean)
881 readOnlyFileChannel.tryLock(0, 10, false);
889 writeOnlyFileChannel.tryLock(0, 10, false);
897 readWriteFileChannel.tryLock(0, 10, false);
905 readWriteFileChannel.tryLock(-1, 0, false);
913 * @tests java.nio.channels.FileChannel#tryLock(lon
3089 public FileLock tryLock(long position, long size, boolean shared) method in class:FileChannelTest.MockFileChannel
[all...]
/external/webkit/Source/JavaScriptCore/wtf/
H A DThreadingNone.cpp48 bool Mutex::tryLock() { return false; } function in class:WTF::Mutex
H A DThreadingPrimitives.h107 bool tryLock();
H A DThreadingPthreads.cpp273 bool Mutex::tryLock() function in class:WTF::Mutex
H A DThreadingWin.cpp294 bool Mutex::tryLock() function in class:WTF::Mutex
/external/webkit/Source/WebCore/storage/
H A DOriginQuotaManager.h49 bool tryLock();
H A DOriginQuotaManager.cpp45 bool OriginQuotaManager::tryLock() function in class:WebCore::OriginQuotaManager
47 bool locked = m_usageRecordGuard.tryLock();
H A DDatabaseTracker.cpp110 ASSERT(!m_databaseGuard.tryLock());
195 ASSERT(!m_databaseGuard.tryLock());
208 ASSERT(!m_databaseGuard.tryLock());
275 ASSERT(!m_databaseGuard.tryLock());
276 ASSERT(!originQuotaManager().tryLock());
336 ASSERT(!m_databaseGuard.tryLock());
372 ASSERT(!m_databaseGuard.tryLock());
617 ASSERT(!originQuotaManager().tryLock());
646 ASSERT(!m_databaseGuard.tryLock());
706 ASSERT(!m_databaseGuard.tryLock());
[all...]
H A DStorageTracker.cpp95 ASSERT(!m_databaseGuard.tryLock());
103 ASSERT(!m_databaseGuard.tryLock());
508 ASSERT(!m_originSetGuard.tryLock());
518 ASSERT(!m_originSetGuard.tryLock());
525 ASSERT(!m_databaseGuard.tryLock());
H A DAbstractDatabase.cpp115 ASSERT(!guidMutex().tryLock());
/external/guava/guava/src/com/google/common/util/concurrent/
H A DMonitor.java311 if (!fair && lock.tryLock()) {
321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS);
340 return lock.tryLock(time, unit);
351 return lock.tryLock();
410 if (!fair && lock.tryLock()) {
414 if (!lock.tryLock(time, unit)) {
445 if (!fair && lock.tryLock()) {
453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) {
564 if (!lock.tryLock(time, unit)) {
591 if (!lock.tryLock()) {
[all...]
/external/webkit/Source/WebCore/webaudio/
H A DAudioBasicProcessorNode.cpp74 // The realtime thread can't block on this lock, so we call tryLock() instead.
75 if (m_processLock.tryLock()) {
90 // Too bad - the tryLock() failed. We must be in the middle of re-connecting and were already outputting silence anyway...
H A DAudioGainNode.cpp60 // The realtime thread can't block on this lock, so we call tryLock() instead.
61 if (m_processLock.tryLock()) {
73 // Too bad - the tryLock() failed. We must be in the middle of re-connecting and were already outputting silence anyway...
H A DConvolverNode.cpp69 if (m_processLock.tryLock()) {
82 // Too bad - the tryLock() failed. We must be in the middle of setting a new impulse response.
H A DAudioContext.cpp395 bool AudioContext::tryLock(bool& mustReleaseLock) function in class:WebCore::AudioContext
404 // In release build treat tryLock() as lock() (since above ASSERT(isAudioThread) never fires) - this is the best we can do.
417 hasLock = m_contextGraphMutex.tryLock();
457 // It's OK if the tryLock() fails, we'll just take slightly longer to pick up the changes.
459 if (tryLock(mustReleaseLock)) {
473 // Must use a tryLock() here too. Don't worry, the lock will very rarely be contended and this method is called frequently.
477 if (tryLock(mustReleaseLock)) {
478 // Take care of finishing any derefs where the tryLock() failed previously.
H A DAudioNode.cpp205 // In the case of the audio thread, we must use a tryLock to avoid glitches.
211 hasLock = context()->tryLock(mustReleaseLock);
H A DAudioContext.h156 bool tryLock(bool& mustReleaseLock);
182 // In AudioNode::deref() a tryLock() is used for calling finishDeref(), but if it fails keep track here.
H A DAudioBufferSourceNode.cpp88 // The audio thread can't block on this lock, so we call tryLock() instead.
89 // Careful - this is a tryLock() and not an autolocker, so we must unlock() before every return.
90 if (m_processLock.tryLock()) {
132 // Too bad - the tryLock() failed. We must be in the middle of changing buffers and were already outputting silence anyway.
/external/webkit/Source/JavaScriptCore/wtf/qt/
H A DThreadingQt.cpp231 bool Mutex::tryLock() function in class:WTF::Mutex
233 return m_mutex->tryLock();
/external/webkit/Source/JavaScriptCore/wtf/gtk/
H A DThreadingGtk.cpp189 bool Mutex::tryLock() function in class:WTF::Mutex
/external/webkit/Source/WebCore/platform/audio/
H A DReverbConvolver.cpp204 // Not using a MutexLocker looks strange, but we use a tryLock() instead because this is run on the real-time
209 if (m_backgroundThreadLock.tryLock()) {
/external/webkit/Source/WebCore/platform/sql/
H A DSQLiteDatabase.cpp112 while (!m_lockingMutex.tryLock()) {
126 ASSERT(!m_lockingMutex.tryLock());

Completed in 376 milliseconds

12