/external/chromium_org/third_party/webrtc/video_engine/ |
H A D | vie_ref_count.cc | 26 CriticalSectionScoped lock(crit_.get()); 32 CriticalSectionScoped lock(crit_.get()); 38 CriticalSectionScoped lock(crit_.get());
|
/external/chromium_org/base/third_party/dmg_fp/ |
H A D | dtoa_wrapper.cc | 9 #include "base/synchronization/lock.h" 12 // A single lock would lead to an attempted recursive grab. 25 * by FREE_DTOA_LOCK(n) for n = 0 or 1. (The second lock, accessed 27 * powers of 5; omitting this lock would introduce a small 36 base::Lock* lock = n == 0 ? dtoa_lock_0.Pointer() : dtoa_lock_1.Pointer(); 37 lock->Acquire(); 42 base::Lock* lock = n == 0 ? dtoa_lock_0.Pointer() : dtoa_lock_1.Pointer(); 43 lock->Release();
|
/external/chromium_org/sync/internal_api/public/base/ |
H A D | cancelation_signal.cc | 21 base::AutoLock lock(signal_lock_); 32 base::AutoLock lock(signal_lock_); 38 base::AutoLock lock(signal_lock_); 43 base::AutoLock lock(signal_lock_);
|
/external/chromium_org/third_party/libvpx/source/libvpx/vpx_ports/ |
H A D | vpx_once.h | 21 static CRITICAL_SECTION *lock; local 24 void *lock_ptr = &lock; 28 * lock. 35 /* Get a lock. We create one and try to make it the one-true-lock, 50 /* At this point, we have a lock that can be synchronized on. We don't 54 EnterCriticalSection(lock); 62 LeaveCriticalSection(lock); 69 DeleteCriticalSection(lock); 70 free(lock); 107 static pthread_once_t lock = PTHREAD_ONCE_INIT; local [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/types
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/types
|
/external/qemu/android/utils/ |
H A D | filelock.h | 29 ** note that 'path' can designate a non-existing path and that the lock creation 33 ** you can call filelock_release() to release a file lock explicitely. otherwise 40 extern void filelock_release( FileLock* lock );
|
/external/qemu/distrib/sdl-1.2.15/src/thread/dc/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/thread/generic/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/thread/os2/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | Support_StringWriter.java | 29 * <code>lock</code> used to synchronize access to this Writer. 34 lock = buf; 40 * the <code>lock</code> used to synchronize access to this Writer. 45 lock = buf; 77 synchronized (lock) { 91 synchronized (lock) { 111 synchronized (lock) { 128 synchronized (lock) { 141 synchronized (lock) { 160 synchronized (lock) { [all...] |
/external/chromium_org/base/test/ |
H A D | simple_test_tick_clock.cc | 16 AutoLock lock(lock_); 21 AutoLock lock(lock_);
|
/external/chromium_org/chrome/browser/importer/ |
H A D | firefox_profile_lock_posix.cc | 88 // This function tries to lock Firefox profile using fcntl(). The return 90 // of lock. 91 // if return == false: Another process has lock to the profile. 92 // if return == true && HasAcquired() == true: successfully acquired the lock. 93 // if return == false && HasAcquired() == false: Failed to acquire lock due 94 // to some error (so that we can try alternate method of profile lock). 101 struct flock lock; local 102 lock.l_start = 0; 103 lock.l_len = 0; 104 lock [all...] |
/external/chromium_org/crypto/ |
H A D | mac_security_services_lock.cc | 8 #include "base/synchronization/lock.h" 21 base::Lock& lock() { return lock_; } function in class:__anon7945::SecurityServicesSingleton 39 return SecurityServicesSingleton::GetInstance()->lock();
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
H A D | sem_wait.c | 54 if (pthread_mutex_lock (&s->lock) == 0) 78 (void) pthread_mutex_unlock (&s->lock); 124 if ((result = pthread_mutex_lock (&s->lock)) == 0) 132 (void) pthread_mutex_unlock (&s->lock); 138 (void) pthread_mutex_unlock (&s->lock); 156 if (!result && pthread_mutex_lock (&s->lock) == 0) 160 (void) pthread_mutex_unlock (&s->lock); 170 (void) pthread_mutex_unlock (&s->lock);
|
H A D | ptw32_MCS_lock.c | 41 * thread. The 'lock' is nothing more than a global pointer that points to 46 * the MCS spin lock for use as a general mutex that will suspend threads 47 * when there is lock contention. 55 * locks do not require any unique 'name' to identify the lock to all 63 * every lock held concurrently by a thread. 147 * ptw32_mcs_lock_acquire -- acquire an MCS lock. 158 ptw32_mcs_lock_acquire (ptw32_mcs_lock_t * lock, ptw32_mcs_local_node_t * node) argument 162 node->lock = lock; 167 /* queue for the lock */ 194 ptw32_mcs_lock_t *lock = node->lock; local 229 ptw32_mcs_lock_try_acquire(ptw32_mcs_lock_t * lock, ptw32_mcs_local_node_t * node) argument [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.guard/adopt_lock 23 test_name := thread/thread.mutex/thread.lock/thread.lock.guard/types 27 test_name := thread/thread.mutex/thread.lock/thread.lock.guard/mutex
|
/external/skia/src/utils/ |
H A D | SkCountdown.cpp | 20 fReady.lock(); 27 fReady.lock();
|
/external/smack/src/com/kenai/jbosh/ |
H A D | HTTPExchange.java | 47 private final Lock lock = new ReentrantLock(); field in class:HTTPExchange 52 private final Condition ready = lock.newCondition(); 92 lock.lock(); 101 lock.unlock(); 111 lock.lock(); 122 lock.unlock();
|
/external/elfutils/0.153/lib/ |
H A D | eu-config.h | 58 # define rwlock_init(lock) RWLOCK_CALL (init (&lock, NULL)) 59 # define rwlock_fini(lock) RWLOCK_CALL (destroy (&lock)) 60 # define rwlock_rdlock(lock) RWLOCK_CALL (rdlock (&lock)) 61 # define rwlock_wrlock(lock) RWLOCK_CALL (wrlock (&lock)) 62 # define rwlock_unlock(lock) RWLOCK_CALL (unlock (&lock)) [all...] |
/external/chromium_org/mojo/system/ |
H A D | data_pipe_producer_dispatcher.cc | 32 lock().AssertAcquired(); 37 lock().AssertAcquired(); 44 lock().AssertAcquired(); 57 lock().AssertAcquired(); 66 lock().AssertAcquired(); 74 lock().AssertAcquired(); 81 lock().AssertAcquired(); 90 lock().AssertAcquired(); 97 lock().AssertAcquired(); 102 lock() [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | AbstractService.java | 42 private final ReentrantLock lock = new ReentrantLock(); field in class:AbstractService 49 * shutdownWhenStartupFinishes is true. Guarded by {@code lock}. 55 * up. Guarded by {@code lock}. 86 lock.lock(); 96 lock.unlock(); 104 lock.lock(); 121 lock.unlock(); 146 lock [all...] |
/external/chromium_org/third_party/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/third_party/webrtc/base/ |
H A D | filelock_unittest.cc | 33 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 34 // The lock is already owned by the main thread of 36 thread_lock_failed_ = lock.get() == NULL; 60 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 61 EXPECT_TRUE(lock.get() != NULL); 63 lock->Unlock(); 68 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 69 EXPECT_TRUE(lock.get() != NULL); 81 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); 82 EXPECT_TRUE(lock [all...] |
/external/jemalloc/test/include/test/ |
H A D | mq.h | 31 mtx_t lock; \ 38 if (mtx_init(&mq->lock)) \ 48 mtx_fini(&mq->lock); \ 55 mtx_lock(&mq->lock); \ 57 mtx_unlock(&mq->lock); \ 65 mtx_lock(&mq->lock); \ 71 mtx_unlock(&mq->lock); \ 105 mtx_lock(&mq->lock); \ 109 mtx_unlock(&mq->lock); \
|