Searched refs:lock_ (Results 1 - 25 of 464) sorted by relevance

1234567891011>>

/external/chromium_org/native_client_sdk/src/libraries/sdk_util/
H A Dsimple_lock.h22 pthread_mutex_init(&lock_, NULL);
26 pthread_mutex_destroy(&lock_);
29 void Lock() const { pthread_mutex_lock(&lock_); }
30 void Unlock() const { pthread_mutex_unlock(&lock_); }
32 pthread_mutex_t* mutex() const { return &lock_; }
35 mutable pthread_mutex_t lock_; member in class:sdk_util::SimpleLock
H A Dauto_lock.h22 lock_ = lock.mutex();
23 pthread_mutex_lock(lock_);
31 if (lock_) pthread_mutex_unlock(lock_);
32 lock_ = NULL;
36 pthread_mutex_t* lock_; member in class:sdk_util::AutoLock
H A Dthread_safe_queue.h33 AUTO_LOCK(lock_);
40 AUTO_LOCK(lock_);
44 while (list_.empty()) pthread_cond_wait(&cond_, lock_.mutex());
57 SimpleLock lock_; member in class:sdk_util::ThreadSafeQueue
/external/chromium_org/third_party/webrtc/system_wrappers/source/
H A Drw_lock_posix.cc15 RWLockPosix::RWLockPosix() : lock_() {
19 pthread_rwlock_destroy(&lock_);
32 return pthread_rwlock_init(&lock_, 0) == 0;
36 pthread_rwlock_wrlock(&lock_);
40 pthread_rwlock_unlock(&lock_);
44 pthread_rwlock_rdlock(&lock_);
48 pthread_rwlock_unlock(&lock_);
/external/chromium_org/base/synchronization/
H A Dlock.h21 Lock() : lock_() {}
23 void Acquire() { lock_.Lock(); }
24 void Release() { lock_.Unlock(); }
30 bool Try() { return lock_.Try(); }
42 lock_.Lock();
47 lock_.Unlock();
51 bool rv = lock_.Try();
82 // All private data is implicitly protected by lock_.
88 internal::LockImpl lock_; member in class:base::Lock
98 explicit AutoLock(Lock& lock) : lock_(loc
112 Lock& lock_; member in class:base::AutoLock
131 Lock& lock_; member in class:base::AutoUnlock
[all...]
/external/chromium_org/third_party/webrtc/base/
H A Dsharedexclusivelock.h45 : lock_(lock) {
46 lock_->LockShared();
49 ~SharedScope() UNLOCK_FUNCTION() { lock_->UnlockShared(); }
52 SharedExclusiveLock* lock_; member in class:rtc::SharedScope
61 : lock_(lock) {
62 lock_->LockExclusive();
65 ~ExclusiveScope() UNLOCK_FUNCTION() { lock_->UnlockExclusive(); }
68 SharedExclusiveLock* lock_; member in class:rtc::ExclusiveScope
H A Dthread_checker_impl.cc28 CritScope scoped_lock(&lock_);
34 CritScope scoped_lock(&lock_);
/external/chromium_org/base/test/
H A Dsimple_test_clock.cc14 AutoLock lock(lock_);
19 AutoLock lock(lock_);
24 AutoLock lock(lock_);
H A Dsimple_test_tick_clock.cc16 AutoLock lock(lock_);
21 AutoLock lock(lock_);
H A Dtask_runner_test_template.cc11 TaskTracker::TaskTracker() : task_runs_(0), task_runs_cv_(&lock_) {}
20 AutoLock lock(lock_);
30 AutoLock lock(lock_);
35 AutoLock lock(lock_);
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dcentral_freelist.h52 // So we prevent lock_'s constructor from doing anything to the
53 // lock_ state.
54 CentralFreeList() : lock_(base::LINKER_INITIALIZED) { }
69 SpinLockHolder h(&lock_);
103 // REQUIRES: lock_ is held
106 void* FetchFromSpans() EXCLUSIVE_LOCKS_REQUIRED(lock_);
108 // REQUIRES: lock_ is held
112 void* FetchFromSpansSafe() EXCLUSIVE_LOCKS_REQUIRED(lock_);
114 // REQUIRES: lock_ is held
116 // May temporarily release lock_
153 SpinLock lock_; member in class:tcmalloc::CentralFreeList
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dcentral_freelist.h52 // So we prevent lock_'s constructor from doing anything to the
53 // lock_ state.
54 CentralFreeList() : lock_(base::LINKER_INITIALIZED) { }
69 SpinLockHolder h(&lock_);
103 // REQUIRES: lock_ is held
106 void* FetchFromSpans() EXCLUSIVE_LOCKS_REQUIRED(lock_);
108 // REQUIRES: lock_ is held
112 void* FetchFromSpansSafe() EXCLUSIVE_LOCKS_REQUIRED(lock_);
114 // REQUIRES: lock_ is held
116 // May temporarily release lock_
153 SpinLock lock_; member in class:tcmalloc::CentralFreeList
[all...]
/external/chromium_org/base/threading/
H A Dthread_checker_impl.cc18 AutoLock auto_lock(lock_);
23 AutoLock auto_lock(lock_);
28 AutoLock auto_lock(lock_);
/external/chromium_org/base/
H A Dsequence_checker_impl.cc11 AutoLock auto_lock(lock_);
18 AutoLock auto_lock(lock_);
31 AutoLock auto_lock(lock_);
38 lock_.AssertAcquired();
/external/chromium_org/ppapi/utility/threading/
H A Dlock.h56 /// pp::AutoLock lock(lock_);
61 /// pp::Lock lock_;
66 explicit AutoLock(Lock& lock) : lock_(lock) {
67 lock_.Acquire();
71 lock_.Release();
75 Lock& lock_; member in class:pp::AutoLock
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/
H A Dlock.h61 explicit AutoLock(Lock& lock) : lock_(lock) {
62 lock_.Acquire();
66 lock_.Unlock();
70 Lock& lock_; member in class:sfntly::AutoLock
/external/sfntly/cpp/src/sfntly/port/
H A Dlock.h61 explicit AutoLock(Lock& lock) : lock_(lock) {
62 lock_.Acquire();
66 lock_.Unlock();
70 Lock& lock_; member in class:sfntly::AutoLock
/external/chromium_org/content/browser/gpu/
H A Dgpu_data_manager_impl.cc23 base::AutoLock auto_lock(lock_);
28 base::AutoLock auto_lock(lock_);
33 base::AutoLock auto_lock(lock_);
38 base::AutoLock auto_lock(lock_);
44 base::AutoLock auto_lock(lock_);
49 base::AutoLock auto_lock(lock_);
54 base::AutoLock auto_lock(lock_);
59 base::AutoLock auto_lock(lock_);
64 base::AutoLock auto_lock(lock_);
69 base::AutoLock auto_lock(lock_);
[all...]
/external/chromium_org/crypto/
H A Dmac_security_services_lock.cc21 base::Lock& lock() { return lock_; }
29 base::Lock lock_; member in class:__anon7945::SecurityServicesSingleton
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_globals.cpp23 pthread_mutex_init(&lock_, NULL);
27 Globals::~Globals() { pthread_mutex_destroy(&lock_); }
H A Dcrazy_linker_globals.h24 void Lock() { pthread_mutex_lock(&lock_); }
26 void Unlock() { pthread_mutex_unlock(&lock_); }
37 pthread_mutex_t lock_; member in class:crazy::Globals
/external/chromium_org/third_party/webrtc/voice_engine/test/auto_test/fakes/
H A Dfake_external_transport.cc22 lock_(NULL),
29 lock_ = webrtc::CriticalSectionWrapper::CreateCriticalSection();
48 delete lock_;
49 lock_ = NULL;
61 lock_->Enter();
64 lock_->Leave();
75 lock_->Enter();
81 lock_->Leave();
/external/chromium_org/mojo/system/
H A Dcore_test_base.cc216 base::AutoLock locker(lock_);
221 base::AutoLock locker(lock_);
226 base::AutoLock locker(lock_);
231 base::AutoLock locker(lock_);
236 base::AutoLock locker(lock_);
241 base::AutoLock locker(lock_);
246 base::AutoLock locker(lock_);
251 base::AutoLock locker(lock_);
256 base::AutoLock locker(lock_);
261 base::AutoLock locker(lock_);
[all...]
/external/chromium_org/sandbox/win/src/
H A Dwin2k_threadpool.cc24 AutoLock lock(&lock_);
33 AutoLock lock(&lock_);
49 AutoLock lock(&lock_);
57 ::DeleteCriticalSection(&lock_);
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/
H A Dlock.h73 AutoLock(Lock& lock) : lock_(lock) {
74 lock_.Acquire();
78 lock_.Release();
82 Lock& lock_;

Completed in 1481 milliseconds

1234567891011>>