/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/ |
H A D | lock_posix.h | 31 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 D | mutex.h | 76 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 D | mutex.h | 72 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/gpu/command_buffer/client/ |
H A D | atomicops.cc | 31 pthread_mutex_init(&mutex_, NULL); 35 pthread_mutex_destroy(&mutex_); 39 pthread_mutex_lock(&mutex_); 46 pthread_mutex_unlock(&mutex_); 50 bool acquired = pthread_mutex_trylock(&mutex_) == 0; 63 pthread_mutex_t mutex_; member in class:gpu::LockImpl
|
/external/ceres-solver/internal/ceres/ |
H A D | mutex.h | 172 MutexType mutex_; member in class:ceres::internal::Mutex 193 // but only one writer. We represent this by having mutex_ be -1 when 200 Mutex::Mutex() : mutex_(0) { } 201 Mutex::~Mutex() { assert(mutex_ == 0); } 202 void Mutex::Lock() { assert(--mutex_ == -1); } 203 void Mutex::Unlock() { assert(mutex_++ == -1); } 205 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 207 void Mutex::ReaderLock() { assert(++mutex_ > 0); } 208 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } 212 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSaf [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
H A D | mutex.h | 161 MutexType mutex_; member in class:Mutex 182 // but only one writer. We represent this by having mutex_ be -1 when 190 Mutex::Mutex() : mutex_(0) { } 191 Mutex::~Mutex() { assert(mutex_ == 0); } 192 void Mutex::Lock() { assert(--mutex_ == -1); } 193 void Mutex::Unlock() { assert(mutex_++ == -1); } 195 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 197 void Mutex::ReaderLock() { assert(++mutex_ > 0); } 198 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } 202 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSaf [all...] |
/external/chromium_org/rlz/win/lib/ |
H A D | lib_mutex.h | 23 HANDLE mutex_; member in class:rlz_lib::LibMutex
|
H A D | lib_mutex.cc | 54 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/native_client_sdk/src/examples/api/input_event/ |
H A D | shared_queue.h | 35 explicit ScopedLock(pthread_mutex_t* mutex) : mutex_(mutex) { 37 if (pthread_mutex_lock(mutex_) != kPthreadMutexSuccess) { 38 mutex_ = NULL; 42 if (mutex_ != NULL) { 43 pthread_mutex_unlock(mutex_); 48 pthread_mutex_t* mutex_; // Weak reference, passed in to constructor. member in class:ScopedLock
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | simple_mutex.h | 177 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 D | simple_mutex.h | 177 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/open-vcdiff/gflags/src/ |
H A D | mutex.h | 187 MutexType mutex_; member in class:MUTEX_NAMESPACE::Mutex 210 // but only one writer. We represent this by having mutex_ be -1 when 217 Mutex::Mutex() : mutex_(0) { } 218 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } 219 Mutex::~Mutex() { assert(mutex_ == 0); } 220 void Mutex::Lock() { assert(--mutex_ == -1); } 221 void Mutex::Unlock() { assert(mutex_++ == -1); } 223 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 225 void Mutex::ReaderLock() { assert(++mutex_ > 0); } 226 void Mutex::ReaderUnlock() { assert(mutex_ [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | criticalsection.h | 88 pthread_mutex_init(&mutex_, &mutex_attribute); 93 pthread_mutex_destroy(&mutex_); 96 pthread_mutex_lock(&mutex_); 101 pthread_mutex_unlock(&mutex_); 109 pthread_mutex_t mutex_; member in class:talk_base::CriticalSection
|
/external/chromium_org/win8/delegate_execute/ |
H A D | delegate_execute_operation.cc | 30 mutex_ = cmd_line->GetSwitchValueNative(switches::kWaitForMutex); 31 if (mutex_.empty()) 49 base::SplitString(mutex_, L'.', &parts);
|
H A D | delegate_execute_operation.h | 57 return mutex_; 71 string16 mutex_; member in class:delegate_execute::DelegateExecuteOperation
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
H A D | db_impl.h | 75 Status Recover(VersionEdit* edit) EXCLUSIVE_LOCKS_REQUIRED(mutex_); 85 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 90 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 93 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 96 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 99 void MaybeScheduleCompaction() EXCLUSIVE_LOCKS_REQUIRED(mutex_); 102 Status BackgroundCompaction() EXCLUSIVE_LOCKS_REQUIRED(mutex_); 104 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 106 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 111 EXCLUSIVE_LOCKS_REQUIRED(mutex_); 129 port::Mutex mutex_; member in class:leveldb::DBImpl [all...] |
H A D | db_impl.cc | 127 bg_cv_(&mutex_), 150 mutex_.Lock(); 155 mutex_.Unlock(); 269 mutex_.AssertHeld(); 372 mutex_.AssertHeld(); 453 mutex_.AssertHeld(); 464 mutex_.Unlock(); 466 mutex_.Lock(); 498 mutex_.AssertHeld(); 516 s = versions_->LogAndApply(&edit, &mutex_); [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | criticalsection.h | 97 pthread_mutex_init(&mutex_, &mutex_attribute); 102 pthread_mutex_destroy(&mutex_); 105 pthread_mutex_lock(&mutex_); 109 if (pthread_mutex_trylock(&mutex_) == 0) { 117 pthread_mutex_unlock(&mutex_); 125 pthread_mutex_t mutex_; member in class:talk_base::CriticalSection
|
/external/chromium_org/third_party/libwebp/utils/ |
H A D | thread.c | 140 pthread_mutex_lock(&worker->mutex_); 142 pthread_cond_wait(&worker->condition_, &worker->mutex_); 154 pthread_mutex_unlock(&worker->mutex_); 165 pthread_mutex_lock(&worker->mutex_); 168 pthread_cond_wait(&worker->condition_, &worker->mutex_); 175 pthread_mutex_unlock(&worker->mutex_); 200 if (pthread_mutex_init(&worker->mutex_, NULL) || 204 pthread_mutex_lock(&worker->mutex_); 207 pthread_mutex_unlock(&worker->mutex_); 232 pthread_mutex_destroy(&worker->mutex_); [all...] |
/external/libvpx/libvpx/vp9/decoder/ |
H A D | vp9_thread.c | 143 pthread_mutex_lock(&worker->mutex_); 145 pthread_cond_wait(&worker->condition_, &worker->mutex_); 155 pthread_mutex_unlock(&worker->mutex_); 166 pthread_mutex_lock(&worker->mutex_); 169 pthread_cond_wait(&worker->condition_, &worker->mutex_); 176 pthread_mutex_unlock(&worker->mutex_); 201 if (pthread_mutex_init(&worker->mutex_, NULL) || 205 pthread_mutex_lock(&worker->mutex_); 208 pthread_mutex_unlock(&worker->mutex_); 238 pthread_mutex_destroy(&worker->mutex_); [all...] |
/external/webp/src/utils/ |
H A D | thread.c | 140 pthread_mutex_lock(&worker->mutex_); 142 pthread_cond_wait(&worker->condition_, &worker->mutex_); 154 pthread_mutex_unlock(&worker->mutex_); 165 pthread_mutex_lock(&worker->mutex_); 168 pthread_cond_wait(&worker->condition_, &worker->mutex_); 175 pthread_mutex_unlock(&worker->mutex_); 200 if (pthread_mutex_init(&worker->mutex_, NULL) || 204 pthread_mutex_lock(&worker->mutex_); 207 pthread_mutex_unlock(&worker->mutex_); 232 pthread_mutex_destroy(&worker->mutex_); [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | once_unittest.cc | 142 MutexLock lock(&mutex_); 155 Mutex mutex_; member in class:google::protobuf::__anon13429::OnceInitTest 162 MutexLock lock(&mutex_); 165 mutex_.Unlock(); 168 mutex_.Lock();
|
/external/protobuf/src/google/protobuf/stubs/ |
H A D | once_unittest.cc | 142 MutexLock lock(&mutex_); 155 Mutex mutex_; member in class:google::protobuf::__anon23974::OnceInitTest 162 MutexLock lock(&mutex_); 165 mutex_.Unlock(); 168 mutex_.Lock();
|
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
H A D | memenv.cc | 242 MutexLock lock(&mutex_); 254 MutexLock lock(&mutex_); 266 MutexLock lock(&mutex_); 280 MutexLock lock(&mutex_); 286 MutexLock lock(&mutex_); 311 MutexLock lock(&mutex_); 329 MutexLock lock(&mutex_); 340 MutexLock lock(&mutex_); 374 port::Mutex mutex_; member in class:leveldb::__anon11262::InMemoryEnv 375 FileSystem file_map_; // Protected by mutex_ [all...] |
/external/chromium/chrome/browser/sync/engine/ |
H A D | all_status.h | 60 mutable base::Lock mutex_; // Protects all data members. member in class:browser_sync::AllStatus
|