Searched refs:lock (Results 76 - 100 of 1392) sorted by relevance

1234567891011>>

/external/skia/include/core/
H A DSkOnce.h44 // 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 Dsem_post.c83 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 Dpthread_spin_init.c5 * 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 Dsem_timedwait.c61 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 DWTF.cpp74 static int lock = 0; local
76 spinLockLock(&lock);
81 spinLockUnlock(&lock);
/external/deqp/framework/delibs/decpp/
H A DdeMutex.hpp33 * \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 Dtc04_free_lock.c7 /* 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 Dsimple_dispatcher.cc19 lock().AssertAcquired();
24 lock().AssertAcquired();
33 lock().AssertAcquired();
54 lock().AssertAcquired();
H A Ddata_pipe_consumer_dispatcher.cc32 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 Dall_status.cc76 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 DWebDiscardableMemory.h41 // 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 DMicrosoftExtensionsInlineAsm.c10 lock bts [ecx], eax
/external/jemalloc/android/src/
H A Dje_mallinfo.c32 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 DMutex.h58 ** 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 Dbasedb.py24 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 Dprinted_document_linux.cc20 base::AutoLock lock(lock_);
28 base::AutoLock lock(lock_);
/external/chromium_org/third_party/WebKit/Source/platform/
H A DTaskSynchronizer.cpp56 m_synchronousMutex.lock();
64 m_synchronousMutex.lock();
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
H A Dprpdce.h55 ** 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 Delf_cntl.c76 rwlock_wrlock (elf->lock);
101 rwlock_unlock (elf->lock);
/external/libcxx/test/thread/thread.mutex/thread.lock/
H A DAndroid.mk17 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 DMutexGuard.h22 /// 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 Dlock.h26 // 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 Dppb_var_dictionary_thunk.cc18 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 DKeyguardManagerTest.java33 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 Dppb_var_shared.cc28 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...]

Completed in 7728 milliseconds

1234567891011>>