/external/chromium/sdch/open-vcdiff/src/ |
D | mutex.h | 161 MutexType mutex_; 190 Mutex::Mutex() : mutex_(0) { } in Mutex() 191 Mutex::~Mutex() { assert(mutex_ == 0); } in ~Mutex() 192 void Mutex::Lock() { assert(--mutex_ == -1); } in Lock() 193 void Mutex::Unlock() { assert(mutex_++ == -1); } in Unlock() 195 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() 197 void Mutex::ReaderLock() { assert(++mutex_ > 0); } in ReaderLock() 198 void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } in ReaderUnlock() 202 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } in Mutex() 203 Mutex::~Mutex() { DeleteCriticalSection(&mutex_); } in ~Mutex() [all …]
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | criticalsection.h | 88 pthread_mutex_init(&mutex_, &mutex_attribute); in CriticalSection() 93 pthread_mutex_destroy(&mutex_); in ~CriticalSection() 96 pthread_mutex_lock(&mutex_); in Enter() 101 pthread_mutex_unlock(&mutex_); in Leave() 109 pthread_mutex_t mutex_;
|
/external/protobuf/src/google/protobuf/stubs/ |
D | once_unittest.cc | 142 MutexLock lock(&mutex_); in CurrentState() 155 Mutex mutex_; member in google::protobuf::__anonda02e00f0111::OnceInitTest 162 MutexLock lock(&mutex_); in Init() 165 mutex_.Unlock(); in Init() 168 mutex_.Lock(); in Init()
|
/external/v8/src/ |
D | platform-cygwin.cc | 496 result = pthread_mutex_init(&mutex_, &attrs); in CygwinMutex() 500 virtual ~CygwinMutex() { pthread_mutex_destroy(&mutex_); } in ~CygwinMutex() 503 int result = pthread_mutex_lock(&mutex_); in Lock() 508 int result = pthread_mutex_unlock(&mutex_); in Unlock() 513 int result = pthread_mutex_trylock(&mutex_); in TryLock() 523 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in v8::internal::CygwinMutex 638 ScopedLock lock(mutex_); in AddActiveSampler() 649 ScopedLock lock(mutex_); in RemoveActiveSampler() 736 static Mutex* mutex_; member in v8::internal::SamplerThread 743 Mutex* SamplerThread::mutex_ = OS::CreateMutex(); member in v8::internal::SamplerThread
|
D | platform-freebsd.cc | 526 result = pthread_mutex_init(&mutex_, &attrs); in FreeBSDMutex() 530 virtual ~FreeBSDMutex() { pthread_mutex_destroy(&mutex_); } in ~FreeBSDMutex() 533 int result = pthread_mutex_lock(&mutex_); in Lock() 538 int result = pthread_mutex_unlock(&mutex_); in Unlock() 543 int result = pthread_mutex_trylock(&mutex_); in TryLock() 553 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in v8::internal::FreeBSDMutex 691 ScopedLock lock(mutex_); in AddActiveSampler() 711 ScopedLock lock(mutex_); in RemoveActiveSampler() 805 static Mutex* mutex_; member in v8::internal::SignalSender 813 Mutex* SignalSender::mutex_ = OS::CreateMutex(); member in v8::internal::SignalSender
|
D | platform-macos.cc | 585 pthread_mutex_init(&mutex_, &attr); in MacOSMutex() 588 virtual ~MacOSMutex() { pthread_mutex_destroy(&mutex_); } in ~MacOSMutex() 590 virtual int Lock() { return pthread_mutex_lock(&mutex_); } in Lock() 591 virtual int Unlock() { return pthread_mutex_unlock(&mutex_); } in Unlock() 594 int result = pthread_mutex_trylock(&mutex_); in TryLock() 604 pthread_mutex_t mutex_; member in v8::internal::MacOSMutex 677 ScopedLock lock(mutex_); in AddActiveSampler() 688 ScopedLock lock(mutex_); in RemoveActiveSampler() 786 static Mutex* mutex_; member in v8::internal::SamplerThread 795 Mutex* SamplerThread::mutex_ = OS::CreateMutex(); member in v8::internal::SamplerThread
|
D | platform.h | 487 explicit ScopedLock(Mutex* mutex): mutex_(mutex) { in ScopedLock() 488 ASSERT(mutex_ != NULL); in ScopedLock() 489 mutex_->Lock(); in ScopedLock() 492 mutex_->Unlock(); in ~ScopedLock() 496 Mutex* mutex_;
|
D | platform-linux.cc | 703 result = pthread_mutex_init(&mutex_, &attrs); in LinuxMutex() 707 virtual ~LinuxMutex() { pthread_mutex_destroy(&mutex_); } in ~LinuxMutex() 710 int result = pthread_mutex_lock(&mutex_); in Lock() 715 int result = pthread_mutex_unlock(&mutex_); in Unlock() 720 int result = pthread_mutex_trylock(&mutex_); in TryLock() 730 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in v8::internal::LinuxMutex 942 ScopedLock lock(mutex_); in AddActiveSampler() 955 ScopedLock lock(mutex_); in RemoveActiveSampler() 1054 static Mutex* mutex_; member in v8::internal::SignalSender 1063 Mutex* SignalSender::mutex_ = OS::CreateMutex(); member in v8::internal::SignalSender
|
D | log-utils.cc | 131 mutex_(NULL), in Log() 146 mutex_ = OS::CreateMutex(); in Initialize() 279 delete mutex_; in Close() 280 mutex_ = NULL; in Close() 309 sl(log_->mutex_), in LogMessageBuilder()
|
D | platform-solaris.cc | 483 pthread_mutex_init(&mutex_, &attr); in SolarisMutex() 486 ~SolarisMutex() { pthread_mutex_destroy(&mutex_); } in ~SolarisMutex() 488 int Lock() { return pthread_mutex_lock(&mutex_); } in Lock() 490 int Unlock() { return pthread_mutex_unlock(&mutex_); } in Unlock() 493 int result = pthread_mutex_trylock(&mutex_); in TryLock() 503 pthread_mutex_t mutex_; member in v8::internal::SolarisMutex
|
D | platform-openbsd.cc | 471 result = pthread_mutex_init(&mutex_, &attrs); in OpenBSDMutex() 475 virtual ~OpenBSDMutex() { pthread_mutex_destroy(&mutex_); } in ~OpenBSDMutex() 478 int result = pthread_mutex_lock(&mutex_); in Lock() 483 int result = pthread_mutex_unlock(&mutex_); in Unlock() 488 pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. member in v8::internal::OpenBSDMutex
|
D | v8threads.cc | 201 mutex_->Lock(); in Lock() 209 mutex_->Unlock(); in Unlock() 284 : mutex_(OS::CreateMutex()), in ThreadManager()
|
D | v8threads.h | 118 Mutex* mutex_; variable
|
D | gdb-jit.h | 131 static Mutex* mutex_;
|
D | log-utils.h | 173 Mutex* mutex_; variable
|
/external/protobuf/src/google/protobuf/ |
D | message.cc | 213 Mutex mutex_; member in google::protobuf::__anon5cabfd300111::GeneratedMessageFactory 254 mutex_.AssertHeld(); in RegisterType() 262 ReaderMutexLock lock(&mutex_); in GetPrototype() 280 WriterMutexLock lock(&mutex_); in GetPrototype()
|
D | descriptor.cc | 575 MutexLockMaybe lock(pool->mutex_); in FindByNameHelper() 752 : mutex_(NULL), in DescriptorPool() 762 : mutex_(new Mutex), in DescriptorPool() 772 : mutex_(NULL), in DescriptorPool() 781 if (mutex_ != NULL) delete mutex_; in ~DescriptorPool() 792 MutexLockMaybe lock(mutex_); in InternalIsFileLoaded() 871 MutexLockMaybe lock(mutex_); in FindFileByName() 887 MutexLockMaybe lock(mutex_); in FindFileContainingSymbol() 957 MutexLockMaybe lock(mutex_); in FindExtensionByNumber() 978 MutexLockMaybe lock(mutex_); in FindAllExtensions() [all …]
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-port.h | 987 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_)); in Lock() 997 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_)); in Unlock() 1013 pthread_mutex_t mutex_; // The underlying pthread mutex. 1030 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL)); in Mutex() 1034 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&mutex_)); in ~Mutex() 1047 : mutex_(mutex) { mutex_->Lock(); } in GTestMutexLock() 1049 ~GTestMutexLock() { mutex_->Unlock(); } in ~GTestMutexLock() 1052 MutexBase* const mutex_;
|
/external/chromium/chrome/browser/sync/engine/ |
D | all_status.cc | 136 base::AutoLock lock(mutex_); in status() 157 allstatus->mutex_.Acquire(); in ScopedStatusLock() 162 allstatus_->mutex_.Release(); in ~ScopedStatusLock()
|
D | all_status.h | 60 mutable base::Lock mutex_; // Protects all data members. variable
|
/external/chromium/testing/gtest/include/gtest/internal/ |
D | gtest-port.h | 1192 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_)); 1202 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_)); 1218 pthread_mutex_t mutex_; // The underlying pthread mutex. 1235 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL)); 1239 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&mutex_)); 1252 : mutex_(mutex) { mutex_->Lock(); } 1254 ~GTestMutexLock() { mutex_->Unlock(); } 1257 MutexBase* const mutex_;
|
/external/chromium/chrome/common/deprecated/ |
D | event_sys-inl.h | 63 condvar_(&mutex_) { in CallbackWaiters() 70 base::AutoLock lock(mutex_); in WaitForCallbackToComplete() 83 base::AutoLock lock(mutex_); in Signal() 91 base::Lock mutex_; variable
|
/external/chromium/chrome/browser/sync/util/ |
D | user_settings.h | 93 mutable base::Lock mutex_; // protects email_. variable
|
D | user_settings.cc | 82 base::AutoLock lock(mutex_); in email() 424 base::AutoLock lock(mutex_); in SwitchUser()
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.h | 142 mutable Mutex mutex_; variable
|