Searched refs:mutex_ (Results 1 - 25 of 117) sorted by relevance

12345

/external/chromium_org/third_party/webrtc/system_wrappers/source/
H A Dcritical_section_posix.cc25 (void) pthread_mutex_init(&mutex_, &attr);
29 (void) pthread_mutex_destroy(&mutex_);
34 (void) pthread_mutex_lock(&mutex_);
39 (void) pthread_mutex_unlock(&mutex_);
H A Devent_posix.cc56 int result = pthread_mutex_init(&mutex_, &attr);
90 pthread_mutex_destroy(&mutex_);
94 if (0 != pthread_mutex_lock(&mutex_)) {
98 pthread_mutex_unlock(&mutex_);
103 if (0 != pthread_mutex_lock(&mutex_)) {
109 pthread_mutex_unlock(&mutex_);
115 if (0 != pthread_mutex_lock(&mutex_)) {
143 ret_val = pthread_cond_timedwait(&cond_, &mutex_, &end_at);
145 ret_val = pthread_cond_wait(&cond_, &mutex_);
150 pthread_mutex_unlock(&mutex_);
[all...]
H A Dcritical_section_posix.h30 pthread_mutex_t mutex_; member in class:webrtc::CriticalSectionPosix
/external/chromium_org/mojo/public/cpp/utility/
H A Dmutex.h29 Mutex() : mutex_(internal::kPthreadMutexInitializer) {}
30 ~Mutex() { pthread_mutex_destroy(&mutex_); }
32 void Lock() { pthread_mutex_lock(&mutex_); }
33 void Unlock() { pthread_mutex_unlock(&mutex_); }
34 bool TryLock() { return pthread_mutex_trylock(&mutex_) == 0; }
49 pthread_mutex_t mutex_; member in class:mojo::Mutex
56 explicit MutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
57 ~MutexLock() { mutex_->Unlock(); }
60 Mutex* const mutex_; member in class:mojo::MutexLock
[all...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/
H A Dlock_posix.h31 const int ret = pthread_mutex_init(&mutex_, NULL);
37 const int ret = pthread_mutex_destroy(&mutex_);
43 int ret = pthread_mutex_lock(&mutex_);
49 int ret = pthread_mutex_unlock(&mutex_);
57 mutable pthread_mutex_t mutex_; member in class:i18n::phonenumbers::Lock
/external/chromium_org/third_party/re2/util/
H A Dmutex.h76 MutexType mutex_; member in class:re2::Mutex
91 // but only one writer. We represent this by having mutex_ be -1 when
99 Mutex::Mutex() : mutex_(0) { }
100 Mutex::~Mutex() { assert(mutex_ == 0); }
101 void Mutex::Lock() { assert(--mutex_ == -1); }
102 void Mutex::Unlock() { assert(mutex_++ == -1); }
103 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
104 void Mutex::ReaderLock() { assert(++mutex_ > 0); }
105 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); }
112 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NUL
[all...]
/external/regex-re2/util/
H A Dmutex.h72 MutexType mutex_; member in class:re2::Mutex
87 // but only one writer. We represent this by having mutex_ be -1 when
95 Mutex::Mutex() : mutex_(0) { }
96 Mutex::~Mutex() { assert(mutex_ == 0); }
97 void Mutex::Lock() { assert(--mutex_ == -1); }
98 void Mutex::Unlock() { assert(mutex_++ == -1); }
99 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
100 void Mutex::ReaderLock() { assert(++mutex_ > 0); }
101 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); }
108 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NUL
[all...]
/external/chromium_org/mojo/public/cpp/utility/lib/
H A Dmutex.cc20 rv = pthread_mutex_init(&mutex_, &mutexattr);
27 int rv = pthread_mutex_destroy(&mutex_);
32 int rv = pthread_mutex_lock(&mutex_);
37 int rv = pthread_mutex_unlock(&mutex_);
42 int rv = pthread_mutex_trylock(&mutex_);
48 assert(pthread_mutex_lock(&mutex_) == EDEADLK);
/external/ceres-solver/internal/ceres/
H A Dmutex.h176 MutexType mutex_; member in class:ceres::internal::Mutex
197 // but only one writer. We represent this by having mutex_ be -1 when
204 Mutex::Mutex() : mutex_(0) { }
205 Mutex::~Mutex() { assert(mutex_ == 0); }
206 void Mutex::Lock() { assert(--mutex_ == -1); }
207 void Mutex::Unlock() { assert(mutex_++ == -1); }
209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
211 void Mutex::ReaderLock() { assert(++mutex_ > 0); }
212 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); }
216 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSaf
[all...]
/external/chromium_org/rlz/win/lib/
H A Dlib_mutex.h23 HANDLE mutex_; member in class:rlz_lib::LibMutex
H A Dlib_mutex.cc54 LibMutex::LibMutex() : acquired_(false), mutex_(NULL) {
55 mutex_ = CreateMutex(NULL, false, kMutexName);
56 bool result = SetObjectToLowIntegrity(mutex_);
58 acquired_ = (WAIT_OBJECT_0 == WaitForSingleObject(mutex_, 5000L));
63 if (acquired_) ReleaseMutex(mutex_);
64 CloseHandle(mutex_);
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
H A Dsimple_mutex.h177 MutexType mutex_; member in class:MUTEX_NAMESPACE::Mutex
200 // but only one writer. We represent this by having mutex_ be -1 when
207 Mutex::Mutex() : mutex_(0) { }
208 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { }
209 Mutex::~Mutex() { assert(mutex_ == 0); }
210 void Mutex::Lock() { assert(--mutex_ == -1); }
211 void Mutex::Unlock() { assert(mutex_++ == -1); }
212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
213 void Mutex::ReaderLock() { assert(++mutex_ > 0); }
214 void Mutex::ReaderUnlock() { assert(mutex_
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
H A Dsimple_mutex.h177 MutexType mutex_; member in class:MUTEX_NAMESPACE::Mutex
200 // but only one writer. We represent this by having mutex_ be -1 when
207 Mutex::Mutex() : mutex_(0) { }
208 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { }
209 Mutex::~Mutex() { assert(mutex_ == 0); }
210 void Mutex::Lock() { assert(--mutex_ == -1); }
211 void Mutex::Unlock() { assert(mutex_++ == -1); }
212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
213 void Mutex::ReaderLock() { assert(++mutex_ > 0); }
214 void Mutex::ReaderUnlock() { assert(mutex_
[all...]
/external/libvpx/libvpx/vp9/decoder/
H A Dvp9_thread.c33 pthread_mutex_lock(&worker->mutex_);
35 pthread_cond_wait(&worker->condition_, &worker->mutex_);
45 pthread_mutex_unlock(&worker->mutex_);
56 pthread_mutex_lock(&worker->mutex_);
59 pthread_cond_wait(&worker->condition_, &worker->mutex_);
66 pthread_mutex_unlock(&worker->mutex_);
91 if (pthread_mutex_init(&worker->mutex_, NULL) ||
95 pthread_mutex_lock(&worker->mutex_);
98 pthread_mutex_unlock(&worker->mutex_);
128 pthread_mutex_destroy(&worker->mutex_);
[all...]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/
H A Dvp9_thread.c24 pthread_mutex_t mutex_; member in struct:VP9WorkerImpl
37 pthread_mutex_lock(&worker->impl_->mutex_);
39 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
49 pthread_mutex_unlock(&worker->impl_->mutex_);
62 pthread_mutex_lock(&worker->impl_->mutex_);
66 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
74 pthread_mutex_unlock(&worker->impl_->mutex_);
103 if (pthread_mutex_init(&worker->impl_->mutex_, NULL)) {
107 pthread_mutex_destroy(&worker->impl_->mutex_);
110 pthread_mutex_lock(&worker->impl_->mutex_);
[all...]
/external/chromium_org/v8/src/base/platform/
H A Dcondition-variable-unittest.cc41 LockGuard<Mutex> lock_guard(&mutex_); variable
45 cv_.Wait(&mutex_);
54 Mutex mutex_; member in class:v8::base::__anon17246::FINAL
65 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
71 threads[n].cv_.Wait(&threads[n].mutex_);
76 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
82 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
92 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
94 threads[n].cv_.Wait(&threads[n].mutex_);
102 LockGuard<Mutex> lock_guard(&threads[n].mutex_);
135 Mutex* mutex_; member in class:v8::base::__anon17247::FINAL
263 Mutex* mutex_; member in class:v8::base::__anon17248::FINAL
[all...]
H A Dmutex.h204 explicit LockGuard(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
205 ~LockGuard() { mutex_->Unlock(); }
208 Mutex* mutex_; member in class:v8::base::FINAL
/external/chromium_org/win8/delegate_execute/
H A Ddelegate_execute_operation.h59 return mutex_;
73 base::string16 mutex_; member in class:delegate_execute::DelegateExecuteOperation
/external/chromium_org/third_party/leveldatabase/src/db/
H A Ddb_impl.h81 Status Recover(VersionEdit* edit) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
91 void CompactMemTable() EXCLUSIVE_LOCKS_REQUIRED(mutex_);
96 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
99 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
102 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
107 void MaybeScheduleCompaction() EXCLUSIVE_LOCKS_REQUIRED(mutex_);
110 void BackgroundCompaction() EXCLUSIVE_LOCKS_REQUIRED(mutex_);
112 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
114 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
119 EXCLUSIVE_LOCKS_REQUIRED(mutex_);
137 port::Mutex mutex_; member in class:leveldb::DBImpl
[all...]
/external/chromium_org/third_party/webrtc/modules/video_processing/main/source/
H A Dvideo_processing_impl.cc50 CriticalSectionScoped mutex(&mutex_);
59 CriticalSectionScoped mutex(&mutex_);
65 mutex_(*CriticalSectionWrapper::CreateCriticalSection()) {
72 delete &mutex_;
76 CriticalSectionScoped mutex(&mutex_);
142 CriticalSectionScoped mutex(&mutex_);
149 CriticalSectionScoped mutex(&mutex_);
155 CriticalSectionScoped mutex(&mutex_);
162 CriticalSectionScoped cs(&mutex_);
169 CriticalSectionScoped cs(&mutex_);
[all...]
/external/chromium_org/mojo/public/cpp/utility/tests/
H A Dmutex_unittest.cc50 mutex_(mutex),
61 mutex_->Lock();
66 mutex_->Unlock();
71 if (mutex_->TryLock()) {
76 mutex_->Unlock();
100 Mutex* const mutex_; member in class:mojo::__anon8798::Fiddler
170 explicit TryThread(Mutex* mutex) : mutex_(mutex), try_lock_succeeded_() {}
174 try_lock_succeeded_ = mutex_->TryLock();
176 mutex_->Unlock();
182 Mutex* const mutex_; member in class:mojo::__anon8798::TryThread
[all...]
/external/chromium_org/third_party/webrtc/video_engine/test/libvietest/helpers/
H A Dvie_file_capture_device.cc45 mutex_ = webrtc::CriticalSectionWrapper::CreateCriticalSection();
49 delete mutex_;
55 webrtc::CriticalSectionScoped cs(mutex_);
71 webrtc::CriticalSectionScoped cs(mutex_);
101 webrtc::CriticalSectionScoped cs(mutex_);
/external/chromium_org/third_party/webrtc/base/
H A Dcriticalsection.h81 pthread_mutex_init(&mutex_, &mutex_attribute);
86 pthread_mutex_destroy(&mutex_);
89 pthread_mutex_lock(&mutex_);
93 if (pthread_mutex_trylock(&mutex_) == 0) {
101 pthread_mutex_unlock(&mutex_);
109 pthread_mutex_t mutex_; member in class:rtc::CriticalSection
/external/chromium_org/third_party/libwebp/utils/
H A Dthread.c39 pthread_mutex_t mutex_; member in struct:WebPWorkerImpl
162 pthread_mutex_lock(&worker->impl_->mutex_);
164 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
174 pthread_mutex_unlock(&worker->impl_->mutex_);
187 pthread_mutex_lock(&worker->impl_->mutex_);
191 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
199 pthread_mutex_unlock(&worker->impl_->mutex_);
228 if (pthread_mutex_init(&worker->impl_->mutex_, NULL)) {
232 pthread_mutex_destroy(&worker->impl_->mutex_);
235 pthread_mutex_lock(&worker->impl_->mutex_);
[all...]
/external/webp/src/utils/
H A Dthread.c39 pthread_mutex_t mutex_; member in struct:WebPWorkerImpl
162 pthread_mutex_lock(&worker->impl_->mutex_);
164 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
174 pthread_mutex_unlock(&worker->impl_->mutex_);
187 pthread_mutex_lock(&worker->impl_->mutex_);
191 pthread_cond_wait(&worker->impl_->condition_, &worker->impl_->mutex_);
199 pthread_mutex_unlock(&worker->impl_->mutex_);
228 if (pthread_mutex_init(&worker->impl_->mutex_, NULL)) {
232 pthread_mutex_destroy(&worker->impl_->mutex_);
235 pthread_mutex_lock(&worker->impl_->mutex_);
[all...]

Completed in 869 milliseconds

12345