/external/regex-re2/util/ |
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_, NULL)); [all...] |
/external/ceres-solver/internal/ceres/ |
mutex.h | 170 MutexType mutex_; member in class:ceres::internal::Mutex 191 // but only one writer. We represent this by having mutex_ be -1 when 198 Mutex::Mutex() : mutex_(0) { } 199 Mutex::~Mutex() { assert(mutex_ == 0); } 200 void Mutex::Lock() { assert(--mutex_ == -1); } 201 void Mutex::Unlock() { assert(mutex_++ == -1); } 203 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 205 void Mutex::ReaderLock() { assert(++mutex_ > 0); } 206 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } 210 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
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_); SetIsSafe(); [all...] |
/external/open-vcdiff/gflags/src/ |
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_-- > 0); [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
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
|
/bionic/libc/bionic/ |
dirent.cpp | 44 pthread_mutex_t mutex_; member in struct:DIR 56 pthread_mutex_init(&d->mutex_, NULL); 105 ScopedPthreadMutexLocker locker(&d->mutex_); 115 ScopedPthreadMutexLocker locker(&d->mutex_); 136 pthread_mutex_destroy(&d->mutex_); 142 ScopedPthreadMutexLocker locker(&d->mutex_);
|
/external/webp/src/utils/ |
thread.c | 138 pthread_mutex_lock(&worker->mutex_); 140 pthread_cond_wait(&worker->condition_, &worker->mutex_); 152 pthread_mutex_unlock(&worker->mutex_); 163 pthread_mutex_lock(&worker->mutex_); 166 pthread_cond_wait(&worker->condition_, &worker->mutex_); 173 pthread_mutex_unlock(&worker->mutex_); 198 if (pthread_mutex_init(&worker->mutex_, NULL) || 202 pthread_mutex_lock(&worker->mutex_); 205 pthread_mutex_unlock(&worker->mutex_); 230 pthread_mutex_destroy(&worker->mutex_); [all...] |
thread.h | 57 pthread_mutex_t mutex_; member in struct:__anon18251
|
/external/protobuf/src/google/protobuf/stubs/ |
once_unittest.cc | 142 MutexLock lock(&mutex_); 155 Mutex mutex_; member in class:google::protobuf::__anon12917::OnceInitTest 162 MutexLock lock(&mutex_); 165 mutex_.Unlock(); 168 mutex_.Lock();
|
/external/chromium/chrome/browser/sync/engine/ |
all_status.h | 60 mutable base::Lock mutex_; // Protects all data members. member in class:browser_sync::AllStatus
|
all_status.cc | 136 base::AutoLock lock(mutex_); 157 allstatus->mutex_.Acquire(); 162 allstatus_->mutex_.Release();
|
/external/v8/src/ |
log-utils.cc | 44 mutex_(NULL), 58 mutex_ = OS::CreateMutex(); 189 delete mutex_; 190 mutex_ = NULL; 199 sl(log_->mutex_),
|
log-utils.h | 90 // destination. mutex_ should be acquired before using output_handle_. 96 // mutex_ is a Mutex used for enforcing exclusive 98 Mutex* mutex_; member in class:v8::internal::Log 101 // mutex_ should be acquired before using it.
|
v8threads.h | 119 Mutex* mutex_; member in class:v8::internal::ThreadManager
|
platform-cygwin.cc | 496 result = pthread_mutex_init(&mutex_, &attrs); 500 virtual ~CygwinMutex() { pthread_mutex_destroy(&mutex_); } 503 int result = pthread_mutex_lock(&mutex_); 508 int result = pthread_mutex_unlock(&mutex_); 513 int result = pthread_mutex_trylock(&mutex_); 523 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in class:v8::internal::CygwinMutex 638 ScopedLock lock(mutex_.Pointer()); 649 ScopedLock lock(mutex_.Pointer()); 735 static LazyMutex mutex_; member in class:v8::internal::SamplerThread 743 LazyMutex SamplerThread::mutex_ = LAZY_MUTEX_INITIALIZER member in class:v8::internal::SamplerThread [all...] |
platform-macos.cc | 664 pthread_mutex_init(&mutex_, &attr); 667 virtual ~MacOSMutex() { pthread_mutex_destroy(&mutex_); } 669 virtual int Lock() { return pthread_mutex_lock(&mutex_); } 670 virtual int Unlock() { return pthread_mutex_unlock(&mutex_); } 673 int result = pthread_mutex_trylock(&mutex_); 683 pthread_mutex_t mutex_; member in class:v8::internal::MacOSMutex 757 ScopedLock lock(mutex_.Pointer()); 768 ScopedLock lock(mutex_.Pointer()); 865 static LazyMutex mutex_; member in class:v8::internal::SamplerThread 875 LazyMutex SamplerThread::mutex_ = LAZY_MUTEX_INITIALIZER member in class:v8::internal::SamplerThread [all...] |
platform-solaris.cc | 559 pthread_mutex_init(&mutex_, &attr); 562 ~SolarisMutex() { pthread_mutex_destroy(&mutex_); } 564 int Lock() { return pthread_mutex_lock(&mutex_); } 566 int Unlock() { return pthread_mutex_unlock(&mutex_); } 569 int result = pthread_mutex_trylock(&mutex_); 579 pthread_mutex_t mutex_; member in class:v8::internal::SolarisMutex 744 ScopedLock lock(mutex_.Pointer()); 757 ScopedLock lock(mutex_.Pointer()); 851 static LazyMutex mutex_; member in class:v8::internal::SignalSender 860 LazyMutex SignalSender::mutex_ = LAZY_MUTEX_INITIALIZER member in class:v8::internal::SignalSender [all...] |
platform.h | 564 explicit ScopedLock(Mutex* mutex): mutex_(mutex) { 565 ASSERT(mutex_ != NULL); 566 mutex_->Lock(); 569 mutex_->Unlock(); 573 Mutex* mutex_; member in class:v8::internal::ScopedLock
|
platform-freebsd.cc | 569 result = pthread_mutex_init(&mutex_, &attrs); 573 virtual ~FreeBSDMutex() { pthread_mutex_destroy(&mutex_); } 576 int result = pthread_mutex_lock(&mutex_); 581 int result = pthread_mutex_unlock(&mutex_); 586 int result = pthread_mutex_trylock(&mutex_); 596 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in class:v8::internal::FreeBSDMutex 734 ScopedLock lock(mutex_.Pointer()); 754 ScopedLock lock(mutex_.Pointer()); 847 static LazyMutex mutex_; member in class:v8::internal::SignalSender 856 LazyMutex SignalSender::mutex_ = LAZY_MUTEX_INITIALIZER member in class:v8::internal::SignalSender [all...] |
/external/chromium/chrome/common/deprecated/ |
event_sys-inl.h | 63 condvar_(&mutex_) { 70 base::AutoLock lock(mutex_); 83 base::AutoLock lock(mutex_); 91 base::Lock mutex_; member in class:CallbackWaiters
|
/external/protobuf/src/google/protobuf/ |
message.cc | 213 Mutex mutex_; member in class:google::protobuf::__anon12908::GeneratedMessageFactory 254 mutex_.AssertHeld(); 262 ReaderMutexLock lock(&mutex_); 280 WriterMutexLock lock(&mutex_);
|
/frameworks/ex/variablespeed/jni/ |
sola_time_scaler.cc | 74 MutexLock lock(&mutex_); // lock out processing while updating 85 MutexLock lock(&mutex_); // lock out processing while updating 100 MutexLock lock(&mutex_); // lock out processing while updating 254 MutexLock lock(&mutex_); // lock out updates while processing each window
|
sola_time_scaler.h | 128 mutable Mutex mutex_; // allows concurrent produce/consume/param change member in class:video_editing::SolaTimeScaler
|
/external/chromium/testing/gtest/include/gtest/internal/ |
gtest-port.h | 1218 pthread_mutex_t mutex_; \/\/ The underlying pthread mutex. member in class:testing::internal::MutexBase 1257 MutexBase* const mutex_; member in class:testing::internal::GTestMutexLock [all...] |
/external/chromium/chrome/browser/sync/util/ |
user_settings.h | 93 mutable base::Lock mutex_; // protects email_. member in class:browser_sync::UserSettings
|