/external/regex-re2/util/ |
D | mutex.h | 50 class Mutex { 53 inline Mutex(); 56 inline ~Mutex(); 75 Mutex(Mutex *ignored); 77 Mutex(const Mutex&); 78 void operator=(const Mutex&); 95 Mutex::Mutex() : mutex_(0) { } in Mutex() function 96 Mutex::~Mutex() { assert(mutex_ == 0); } in ~Mutex() 97 void Mutex::Lock() { assert(--mutex_ == -1); } in Lock() 98 void Mutex::Unlock() { assert(mutex_++ == -1); } in Unlock() [all …]
|
/external/clang/test/SemaCXX/ |
D | warn-thread-safety-parsing.cpp | 27 class LOCKABLE Mutex { class 45 Mutex mu; 46 Mutex getMu() { in getMu() 49 Mutex * getMuPointer() { in getMuPointer() 63 Mutex mu1; 65 Mutex mu2; 68 Mutex* muPointer; 69 Mutex** muDoublePointer = & muPointer; 70 Mutex& muRef = mu1; 77 Mutex foomu; [all …]
|
D | warn-thread-safety-analysis.cpp | 30 class LOCKABLE Mutex { class 40 const Mutex& operator!() const { return *this; } in operator !() 48 MutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 49 MutexLock(Mutex *mu, bool adopt) EXCLUSIVE_LOCKS_REQUIRED(mu); 55 ReaderMutexLock(Mutex *mu) SHARED_LOCK_FUNCTION(mu); 56 ReaderMutexLock(Mutex *mu, bool adopt) SHARED_LOCKS_REQUIRED(mu); 62 ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 70 DoubleMutexLock(Mutex *mu1, Mutex *mu2) 141 Mutex sls_mu; 143 Mutex sls_mu2 __attribute__((acquired_after(sls_mu))); [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deMutex.hpp | 37 class Mutex class 40 Mutex (deUint32 flags = 0); 41 ~Mutex (void); 48 Mutex (const Mutex& other); // Not allowed! 49 Mutex& operator= (const Mutex& other); // Not allowed! 64 ScopedLock (Mutex& mutex); 71 Mutex& m_mutex; 88 inline void Mutex::lock (void) throw() in lock() 102 inline void Mutex::unlock (void) throw() in unlock() 114 inline bool Mutex::tryLock (void) throw() in tryLock() [all …]
|
D | deMutex.cpp | 37 Mutex::Mutex (deUint32 flags) in Mutex() function in de::Mutex 49 Mutex::~Mutex (void) in ~Mutex()
|
/external/icu/icu4c/source/common/ |
D | mutex.h | 53 class U_COMMON_API Mutex : public UMemory { 55 inline Mutex(UMutex *mutex = NULL); 56 inline ~Mutex(); 61 Mutex(const Mutex &other); // forbid copying of this class 62 Mutex &operator=(const Mutex &other); // forbid copying of this class 65 inline Mutex::Mutex(UMutex *mutex) in Mutex() function 71 inline Mutex::~Mutex() in ~Mutex()
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_test_util.h | 32 class Mutex { 44 explicit Mutex(Type type = Normal); 45 ~Mutex(); 63 Mutex(const Mutex&); 64 void operator = (const Mutex&); 104 void Create(const Mutex &m); 105 void Destroy(const Mutex &m); 106 void Lock(const Mutex &m); 107 bool TryLock(const Mutex &m); 108 void Unlock(const Mutex &m); [all …]
|
D | tsan_test_util_posix.cc | 137 Mutex::Mutex(Type type) in Mutex() function in Mutex 142 Mutex::~Mutex() { in ~Mutex() 146 void Mutex::Init() { in Init() 161 void Mutex::StaticInit() { in StaticInit() 169 void Mutex::Destroy() { in Destroy() 182 void Mutex::Lock() { in Lock() 194 bool Mutex::TryLock() { in TryLock() 207 void Mutex::Unlock() { in Unlock() 219 void Mutex::ReadLock() { in ReadLock() 225 bool Mutex::TryReadLock() { in TryReadLock() [all …]
|
D | tsan_mutex.cc | 24 Mutex m; in TEST() 42 Mutex m(Mutex::Spin); in TEST() 60 Mutex m(Mutex::RW); in TEST() 95 TEST(ThreadSanitizer, Mutex) { in TEST() argument 96 Mutex m; in TEST() 112 Mutex m(Mutex::Spin); in TEST() 128 Mutex m(Mutex::RW); in TEST() 154 Mutex m; in TEST()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | threading.h | 108 #define LOCK(Mutex) WaitForSingleObject((void *) Mutex, INFINITE) argument 109 #define UNLOCK(Mutex) ReleaseMutex((void *) Mutex) argument 113 #define LOCK(Mutex) \ argument 114 pthread_cleanup_push((void *) pthread_mutex_unlock, (void *) &Mutex); \ 115 pthread_mutex_lock(&Mutex) 116 #define UNLOCK(Mutex) \ argument 117 pthread_mutex_unlock(&Mutex); \
|
/external/protobuf/src/google/protobuf/stubs/ |
D | common.cc | 171 static Mutex* log_silencer_count_mutex_ = NULL; 179 log_silencer_count_mutex_ = new Mutex; in InitLogSilencerCount() 313 struct Mutex::Internal { 321 Mutex::Mutex() in Mutex() function in google::protobuf::Mutex 326 Mutex::~Mutex() { in ~Mutex() 331 void Mutex::Lock() { in Lock() 338 void Mutex::Unlock() { in Unlock() 345 void Mutex::AssertHeld() { in AssertHeld() 353 struct Mutex::Internal { 357 Mutex::Mutex() in Mutex() function in google::protobuf::Mutex [all …]
|
D | mutex.h | 48 class LIBPROTOBUF_EXPORT Mutex { 51 Mutex(); 54 ~Mutex(); 70 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Mutex); 84 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock() 87 Mutex *const mu_; 98 explicit MutexLockMaybe(Mutex *mu) : in MutexLockMaybe() 102 Mutex *const mu_; 138 using internal::Mutex;
|
/external/v8/src/base/platform/ |
D | mutex.h | 37 class V8_BASE_EXPORT Mutex final { 39 Mutex(); 40 ~Mutex(); 92 DISALLOW_COPY_AND_ASSIGN(Mutex); 105 typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>, 156 typedef Mutex::NativeHandle NativeHandle; 202 template <typename Mutex> 205 explicit LockGuard(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); } in LockGuard() 209 Mutex* mutex_;
|
D | mutex.cc | 113 Mutex::Mutex() { in Mutex() function in v8::base::Mutex 121 Mutex::~Mutex() { in ~Mutex() 127 void Mutex::Lock() { in Lock() 133 void Mutex::Unlock() { in Unlock() 139 bool Mutex::TryLock() { in TryLock()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_mutex.h | 43 class Mutex { 45 explicit Mutex(MutexType type, StatType stat_type); 46 ~Mutex(); 65 Mutex(const Mutex&); 66 void operator = (const Mutex&); 69 typedef GenericScopedLock<Mutex> Lock; 70 typedef GenericScopedReadLock<Mutex> ReadLock;
|
/external/mesa3d/src/mesa/main/ |
D | hash.c | 65 _glthread_Mutex Mutex; /**< mutual exclusion lock */ member 82 _glthread_INIT_MUTEX(table->Mutex); in _mesa_NewHashTable() 115 _glthread_DESTROY_MUTEX(table->Mutex); in _mesa_DeleteHashTable() 160 _glthread_LOCK_MUTEX(table->Mutex); in _mesa_HashLookup() 162 _glthread_UNLOCK_MUTEX(table->Mutex); in _mesa_HashLookup() 185 _glthread_LOCK_MUTEX(table->Mutex); in _mesa_HashInsert() 202 _glthread_UNLOCK_MUTEX(table->Mutex); in _mesa_HashInsert() 216 _glthread_UNLOCK_MUTEX(table->Mutex); in _mesa_HashInsert() 246 _glthread_LOCK_MUTEX(table->Mutex); in _mesa_HashRemove() 261 _glthread_UNLOCK_MUTEX(table->Mutex); in _mesa_HashRemove() [all …]
|
D | renderbuffer.c | 41 _glthread_INIT_MUTEX(rb->Mutex); in _mesa_init_renderbuffer() 85 _glthread_DESTROY_MUTEX(rb->Mutex); in _mesa_delete_renderbuffer() 154 _glthread_LOCK_MUTEX(oldRb->Mutex); in _mesa_reference_renderbuffer_() 159 _glthread_UNLOCK_MUTEX(oldRb->Mutex); in _mesa_reference_renderbuffer_() 172 _glthread_LOCK_MUTEX(rb->Mutex); in _mesa_reference_renderbuffer_() 175 _glthread_UNLOCK_MUTEX(rb->Mutex); in _mesa_reference_renderbuffer_()
|
/external/v8/src/compiler-dispatcher/ |
D | compiler-dispatcher-tracer.cc | 91 base::LockGuard<base::Mutex> lock(&mutex_); in RecordPrepareToParse() 97 base::LockGuard<base::Mutex> lock(&mutex_); in RecordParse() 102 base::LockGuard<base::Mutex> lock(&mutex_); in RecordFinalizeParsing() 107 base::LockGuard<base::Mutex> lock(&mutex_); in RecordPrepareToCompile() 113 base::LockGuard<base::Mutex> lock(&mutex_); in RecordCompile() 118 base::LockGuard<base::Mutex> lock(&mutex_); in RecordFinalizeCompiling() 123 base::LockGuard<base::Mutex> lock(&mutex_); in EstimatePrepareToParseInMs() 128 base::LockGuard<base::Mutex> lock(&mutex_); in EstimateParseInMs() 133 base::LockGuard<base::Mutex> lock(&mutex_); in EstimateFinalizeParsingInMs() 138 base::LockGuard<base::Mutex> lock(&mutex_); in EstimatePrepareToCompileInMs() [all …]
|
D | optimizing-compile-dispatcher.cc | 39 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_); in CompileTask() 68 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_); in Run() 83 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in ~OptimizingCompileDispatcher() 92 base::LockGuard<base::Mutex> access_input_queue_(&input_queue_mutex_); in NextInput() 118 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in CompileNext() 127 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in FlushOutputQueue() 140 base::LockGuard<base::Mutex> access_input_queue_(&input_queue_mutex_); in Flush() 157 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Flush() 171 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Stop() 192 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in InstallOptimizedFunctions() [all …]
|
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_mutex_test.cc | 96 TEST(Mutex, Write) { in TEST() argument 97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST() 98 TestData<Mutex> data(&mtx); in TEST() 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); in TEST() 106 TEST(Mutex, ReadWrite) { in TEST() argument 107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST() 108 TestData<Mutex> data(&mtx); in TEST() 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); in TEST() 116 TEST(Mutex, SpinWrite) { in TEST() argument
|
/external/clang/test/Sema/ |
D | warn-thread-safety-analysis.c | 28 struct LOCKABLE Mutex {}; struct 31 struct Mutex *mu_; 35 void mutex_exclusive_lock(struct Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 36 void mutex_shared_lock(struct Mutex *mu) SHARED_LOCK_FUNCTION(mu); 37 void mutex_unlock(struct Mutex *mu) UNLOCK_FUNCTION(mu); 38 void mutex_shared_unlock(struct Mutex *mu) __attribute__((release_shared_capability(mu))); 39 void mutex_exclusive_unlock(struct Mutex *mu) __attribute__((release_capability(mu))); 42 struct Mutex mu1; 43 struct Mutex mu2 ACQUIRED_AFTER(mu1);
|
/external/compiler-rt/test/tsan/ |
D | ignore_sync.cc | 9 pthread_mutex_t Mutex = PTHREAD_MUTEX_INITIALIZER; variable 13 pthread_mutex_lock(&Mutex); in Thread() 15 pthread_mutex_unlock(&Mutex); in Thread() 23 pthread_mutex_lock(&Mutex); in main() 25 pthread_mutex_unlock(&Mutex); in main()
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | scoped_lock.hpp | 23 template <typename Mutex> 32 scoped_lock(Mutex& m, adopt_lock_t) in scoped_lock() 39 explicit scoped_lock(Mutex& m) in scoped_lock() 80 Mutex& mutex() in mutex() 87 Mutex& mutex_;
|
/external/v8/src/libplatform/ |
D | task-queue.cc | 18 base::LockGuard<base::Mutex> guard(&lock_); in ~TaskQueue() 25 base::LockGuard<base::Mutex> guard(&lock_); in Append() 35 base::LockGuard<base::Mutex> guard(&lock_); in GetNext() 52 base::LockGuard<base::Mutex> guard(&lock_); in Terminate() 61 base::LockGuard<base::Mutex> guard(&lock_); in BlockUntilQueueEmptyForTesting()
|
/external/valgrind/drd/tests/ |
D | tsan_unittest.cpp | 54 #define RWLock Mutex // Mutex does work as an rw-lock. 148 Mutex printf_mu; 377 Mutex MU; 425 Mutex MU; 507 Mutex MU; 559 Mutex MU; 611 Mutex MU; 748 Mutex MU; 803 Mutex MU; 851 Mutex MU; [all …]
|