/external/sfntly/cpp/src/test/ |
H A D | lock_test.cc | 20 #include "sfntly/port/lock.h" 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} argument 62 Lock lock; local 63 BasicLockTestThread thread(&lock); 70 lock.Acquire(); 72 lock.Unlock(); 75 lock.Acquire(); 78 lock.Unlock(); 81 if (lock 106 TryLockTestThread(Lock* lock) argument 124 Lock lock; local 165 MutexLockTestThread(Lock* lock, int* value) argument 168 DoStuff(Lock* lock, int* value) argument 190 Lock lock; local 207 Lock lock; local [all...] |
/external/qemu/include/exec/ |
H A D | spinlock.h | 41 static inline void spin_lock(spinlock_t *lock) argument 45 static inline void spin_unlock(spinlock_t *lock) argument
|
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/ |
H A D | auto_lock.h | 16 #define AUTO_LOCK(lock) \ 17 ::sdk_util::AutoLock Lock##__LINE__(lock); 21 AutoLock(const SimpleLock& lock) { argument 22 lock_ = lock.mutex();
|
/external/valgrind/main/memcheck/tests/ |
H A D | file_locking.stderr.exp | 1 parent: about to lock file for writing. 3 child: about to lock file for writing.
|
/external/chromium_org/base/test/ |
H A D | simple_test_clock.cc | 14 AutoLock lock(lock_); 19 AutoLock lock(lock_); 24 AutoLock lock(lock_);
|
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
H A D | prlock.h | 59 * NSPR represents the lock as an opaque entity to the client of the 72 ** Returns a pointer to a newly created opaque lock object. 76 ** If the lock can not be created because of resource constraints, NULL 85 ** Destroys a given opaque lock object. 86 ** INPUTS: PRLock *lock 91 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable 96 ** Lock a lock. 97 ** INPUTS: PRLock *lock 102 NSPR_API(void) PR_Lock(PRLock *lock); variable 107 ** Unlock a lock 114 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable [all...] |
/external/jemalloc/test/include/test/ |
H A D | mtx.h | 10 CRITICAL_SECTION lock; member in struct:__anon22658 12 OSSpinLock lock; 14 pthread_mutex_t lock;
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/release 23 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/member_swap 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/owns_lock 23 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/mutex 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/release 23 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/member_swap 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/owns_lock 23 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/mutex 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/qemu/include/qemu/ |
H A D | thread-posix.h | 7 pthread_mutex_t lock; member in struct:QemuMutex 16 pthread_mutex_t lock; member in struct:QemuSemaphore 26 pthread_mutex_t lock; member in struct:QemuEvent
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock 23 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/default 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/Android.mk 19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex_adopt_lock 23 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/default 27 test_name := thread/thread.mutex/thread.lock/threa [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
H A D | sem_destroy.c | 86 if ((result = pthread_mutex_lock (&s->lock)) == 0) 90 (void) pthread_mutex_unlock (&s->lock); 99 (void) pthread_mutex_unlock (&s->lock); 105 * Invalidate the semaphore handle when we have the lock. 106 * Other sema operations should test this after acquiring the lock 118 (void) pthread_mutex_unlock (&s->lock); 128 while (pthread_mutex_destroy (&s->lock) == EBUSY);
|
H A D | ptw32_semwait.c | 78 if ((result = pthread_mutex_lock (&s->lock)) == 0) 86 (void) pthread_mutex_unlock (&s->lock); 92 (void) pthread_mutex_unlock (&s->lock); 100 if (pthread_mutex_lock (&s->lock) == 0) 104 (void) pthread_mutex_unlock (&s->lock); 114 (void) pthread_mutex_unlock (&s->lock);
|
H A D | sem_getvalue.c | 91 if ((result = pthread_mutex_lock(&s->lock)) == 0) 97 (void) pthread_mutex_unlock (&s->lock); 103 (void) pthread_mutex_unlock(&s->lock);
|
H A D | sem_trywait.c | 86 else if ((result = pthread_mutex_lock (&s->lock)) == 0) 92 (void) pthread_mutex_unlock (&s->lock); 106 (void) pthread_mutex_unlock (&s->lock);
|
/external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/ |
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/Android.mk 19 test_name := thread/thread.mutex/thread.lock.algorithm/lock 20 test_src := lock.pass.cpp 23 test_name := thread/thread.mutex/thread.lock.algorithm/try_lock
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | Monitor.java | 123 * private final ReentrantLock lock = new ReentrantLock(); 124 * private final Condition valuePresent = lock.newCondition(); 125 * private final Condition valueAbsent = lock.newCondition(); 129 * lock.lock(); 139 * lock.unlock(); 144 * lock.lock(); 152 * lock.unlock(); 224 @GuardedBy("monitor.lock") 261 private final ReentrantLock lock; field in class:Monitor [all...] |
/external/chromium_org/chrome/browser/importer/ |
H A D | firefox_profile_lock_unittest.cc | 32 // Tests basic functionality and verifies that the lock file is deleted after 39 scoped_ptr<FirefoxProfileLock> lock; local 40 EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock.get()); 42 lock.reset(new FirefoxProfileLock(test_path)); 43 EXPECT_TRUE(lock->HasAcquired()); 45 lock->Unlock(); 46 EXPECT_FALSE(lock->HasAcquired()); 48 // In the posix code, we don't delete the file when releasing the lock. 52 lock->Lock(); 53 EXPECT_TRUE(lock 78 scoped_ptr<FirefoxProfileLock> lock; local [all...] |
/external/chromium_org/ppapi/shared_impl/ |
H A D | proxy_lock.cc | 8 #include "base/synchronization/lock.h" 20 // Simple single-thread deadlock detector for the proxy lock. 21 // |true| when the current thread has the lock. 32 // Functions below should only access the lock via Get to ensure that they don't 33 // try to use the lock on the host side of the proxy, where locking is 39 base::Lock* lock = Get(); local 40 if (lock) { 41 // This thread does not already hold the lock. 45 lock->Acquire(); 52 base::Lock* lock local 65 base::Lock* lock = Get(); local 95 ProxyAutoUnlock lock; local [all...] |
/external/jemalloc/include/jemalloc/internal/ |
H A D | mutex.h | 29 CRITICAL_SECTION lock; member in struct:malloc_mutex_s 31 OSSpinLock lock; 33 pthread_mutex_t lock; 36 pthread_mutex_t lock; 73 EnterCriticalSection(&mutex->lock); 75 OSSpinLockLock(&mutex->lock); 77 pthread_mutex_lock(&mutex->lock); 88 LeaveCriticalSection(&mutex->lock); 90 OSSpinLockUnlock(&mutex->lock); 92 pthread_mutex_unlock(&mutex->lock); [all...] |
/external/fio/ |
H A D | mutex.c | 60 ret = pthread_mutex_init(&mutex->lock, &attr); 107 pthread_mutex_lock(&mutex->lock); 116 ret = pthread_cond_timedwait(&mutex->cond, &mutex->lock, &t); 125 pthread_mutex_unlock(&mutex->lock); 137 pthread_mutex_lock(&mutex->lock); 142 pthread_mutex_unlock(&mutex->lock); 151 pthread_mutex_lock(&mutex->lock); 155 pthread_cond_wait(&mutex->cond, &mutex->lock); 160 pthread_mutex_unlock(&mutex->lock); 167 pthread_mutex_lock(&mutex->lock); 175 fio_rwlock_write(struct fio_rwlock *lock) argument 181 fio_rwlock_read(struct fio_rwlock *lock) argument 187 fio_rwlock_unlock(struct fio_rwlock *lock) argument 193 fio_rwlock_remove(struct fio_rwlock *lock) argument 201 struct fio_rwlock *lock; local [all...] |
/external/chromium_org/third_party/webrtc/base/ |
H A D | sharedexclusivelock.h | 20 // This class provides shared-exclusive lock. It can be used in cases like 44 explicit SharedScope(SharedExclusiveLock* lock) SHARED_LOCK_FUNCTION(lock) 45 : lock_(lock) { 59 explicit ExclusiveScope(SharedExclusiveLock* lock) 60 EXCLUSIVE_LOCK_FUNCTION(lock) 61 : lock_(lock) {
|