/external/skia/include/core/ |
H A D | SkOnce.h | 44 // If you've already got a lock and a flag to use, this variant lets you avoid an extra SkOnceFlag. 46 inline void SkOnce(bool* done, Lock* lock, void (*f)()); 49 inline void SkOnce(bool* done, Lock* lock, void (*f)(Arg), Arg arg); 86 static void sk_once_slow(bool* done, Lock* lock, void (*f)(Arg), Arg arg) { argument 87 lock->acquire(); 101 lock->release(); 106 inline void SkOnce(bool* done, Lock* lock, void (*f)(Arg), Arg arg) { argument 108 sk_once_slow(done, lock, f, arg); 140 inline void SkOnce(bool* done, Lock* lock, void (*func)()) { argument 141 return SkOnce(done, lock, sk_once_no_arg_adapto [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
H A D | sem_post.c | 83 else if ((result = pthread_mutex_lock (&s->lock)) == 0) 89 (void) pthread_mutex_unlock (&s->lock); 117 (void) pthread_mutex_unlock (&s->lock);
|
H A D | pthread_spin_init.c | 5 * This translation unit implements spin lock primitives. 42 pthread_spin_init (pthread_spinlock_t * lock, int pshared) argument 48 if (lock == NULL) 114 *lock = s; 119 *lock = NULL;
|
H A D | sem_timedwait.c | 61 if (pthread_mutex_lock (&s->lock) == 0) 92 (void) pthread_mutex_unlock (&s->lock); 162 if ((result = pthread_mutex_lock (&s->lock)) == 0) 170 (void) pthread_mutex_unlock (&s->lock); 176 (void) pthread_mutex_unlock (&s->lock); 204 if (!timedout && pthread_mutex_lock (&s->lock) == 0) 208 (void) pthread_mutex_unlock (&s->lock); 218 (void) pthread_mutex_unlock (&s->lock);
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
H A D | WTF.cpp | 74 static int lock = 0; local 76 spinLockLock(&lock); 81 spinLockUnlock(&lock);
|
/external/deqp/framework/delibs/decpp/ |
H A D | deMutex.hpp | 33 * \brief Mutual exclusion lock 35 * Mutex class provides standard mutual exclusion lock functionality. 43 void lock (void) throw(); 55 * \brief Scoped mutex lock. 57 * ScopedLock provides helper for maintaining Mutex lock for the duration 58 * of current scope. The lock is acquired in constructor and released 77 * \brief Acquire mutex lock. 83 * lock is released. 86 * succeed and increment lock count. 88 inline void Mutex::lock (voi function in class:de::Mutex [all...] |
/external/valgrind/main/helgrind/tests/ |
H A D | tc04_free_lock.c | 7 /* Delete memory that has a held lock and see what happens. */ 10 pthread_mutex_t lock; int morestuff[2000]; } XX; member in struct:__anon32860 20 pthread_mutex_init( &xx->lock, NULL ); 22 pthread_mutex_lock( &xx->lock );
|
/external/chromium_org/mojo/system/ |
H A D | simple_dispatcher.cc | 19 lock().AssertAcquired(); 24 lock().AssertAcquired(); 33 lock().AssertAcquired(); 54 lock().AssertAcquired();
|
H A D | data_pipe_consumer_dispatcher.cc | 32 lock().AssertAcquired(); 37 lock().AssertAcquired(); 44 lock().AssertAcquired(); 57 lock().AssertAcquired(); 84 lock().AssertAcquired(); 97 lock().AssertAcquired(); 104 lock().AssertAcquired(); 113 lock().AssertAcquired(); 120 lock().AssertAcquired(); 125 lock() [all...] |
/external/chromium_org/sync/engine/ |
H A D | all_status.cc | 76 ScopedStatusLock lock(this); 91 ScopedStatusLock lock(this); 97 ScopedStatusLock lock(this); 102 ScopedStatusLock lock(this); 111 base::AutoLock lock(mutex_); 116 ScopedStatusLock lock(this); 121 ScopedStatusLock lock(this); 126 ScopedStatusLock lock(this); 131 ScopedStatusLock lock(this); 136 ScopedStatusLock lock(thi [all...] |
/external/chromium_org/third_party/WebKit/public/platform/ |
H A D | WebDiscardableMemory.h | 41 // if (!mem->lock()) { 57 // lock() may return false, indicating that the underlying memory was 58 // discarded and that the lock failed. In this case, the 61 // Nested calls to lock are not allowed. 62 virtual bool lock() = 0; 69 // after every successful lock call.
|
/external/clang/test/Parser/ |
H A D | MicrosoftExtensionsInlineAsm.c | 10 lock bts [ecx], eax
|
/external/jemalloc/android/src/ |
H A D | je_mallinfo.c | 32 malloc_mutex_lock(&arenas[i]->lock); 36 malloc_mutex_unlock(&arenas[i]->lock); 41 malloc_mutex_lock(&bin->lock); 43 malloc_mutex_unlock(&bin->lock);
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
H A D | Mutex.h | 58 ** Function: lock 60 ** Description: Block the thread and try lock the mutex. 65 void lock (); 84 ** Description: Try to lock the mutex.
|
/external/chromium_org/third_party/tlslite/tlslite/ |
H A D | basedb.py | 24 self.lock = threading.Lock() 57 self.lock.acquire() 61 self.lock.release() 71 self.lock.acquire() 77 self.lock.release() 83 self.lock.acquire() 89 self.lock.release() 105 self.lock.acquire() 109 self.lock.release() 124 self.lock [all...] |
/external/chromium_org/printing/ |
H A D | printed_document_linux.cc | 20 base::AutoLock lock(lock_); 28 base::AutoLock lock(lock_);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
H A D | TaskSynchronizer.cpp | 56 m_synchronousMutex.lock(); 64 m_synchronousMutex.lock();
|
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
H A D | prpdce.h | 55 ** Test and acquire a lock. 57 ** If the lock is acquired by the calling thread, the 58 ** return value will be PR_SUCCESS. If the lock is 62 NSPR_API(PRStatus) PRP_TryLock(PRLock *lock); variable 68 ** to a lock. The CV created with this function is the only type 85 ** the lock protecting the condition 'lock' is held by the 93 PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout);
|
/external/elfutils/0.153/libelf/ |
H A D | elf_cntl.c | 76 rwlock_wrlock (elf->lock); 101 rwlock_unlock (elf->lock);
|
/external/libcxx/test/thread/thread.mutex/thread.lock/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/Android.mk 19 test_name := thread/thread.mutex/thread.lock/types
|
/external/llvm/include/llvm/Support/ |
H A D | MutexGuard.h | 22 /// hold that lock until destruction. The intention is to instantiate one of 34 /// holds - Returns true if this locker instance holds the specified lock. 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
|
/external/chromium_org/base/synchronization/ |
H A D | lock.h | 26 // If the lock is not held, take it and return true. If the lock is already 28 // by a thread already holding the lock (what happens is undefined and an 40 // acquire the lock a second time (while already holding it). 63 // to see our lock and tweak our debugging counters, as it releases 83 // Be VERY careful to only access members under that lock. 87 // Platform specific underlying lock implementation. 98 explicit AutoLock(Lock& lock) : lock_(lock) { argument 102 AutoLock(Lock& lock, cons argument 120 AutoUnlock(Lock& lock) argument [all...] |
/external/chromium_org/ppapi/thunk/ |
H A D | ppb_var_dictionary_thunk.cc | 18 ProxyAutoLock lock; local 26 ProxyAutoLock lock; local 35 ProxyAutoLock lock; local 45 ProxyAutoLock lock; local 53 ProxyAutoLock lock; local 62 ProxyAutoLock lock; local
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | KeyguardManagerTest.java | 33 KeyguardManager.KeyguardLock lock = mgr.newKeyguardLock(KEYGUARD_SERVICE); 34 assertTrue(shadowOf(lock).isEnabled()); 36 lock.disableKeyguard(); 37 assertFalse(shadowOf(lock).isEnabled()); 39 lock.reenableKeyguard(); 40 assertTrue(shadowOf(lock).isEnabled());
|
/external/chromium_org/ppapi/shared_impl/ |
H A D | ppb_var_shared.cc | 28 ProxyAutoLock lock; local 33 ProxyAutoLock lock; local 38 ProxyAutoLock lock; local 47 ProxyAutoLock lock; local 58 ProxyAutoLock lock; local 68 ProxyAutoLock lock; local 84 ProxyAutoLock lock; local 90 ProxyAutoLock lock; local 99 ProxyAutoLock lock; local 107 ProxyAutoLock lock; local [all...] |