/external/gflags/src/ |
D | mutex.h | 157 class Mutex { 164 inline Mutex(); 169 explicit inline Mutex(LinkerInitialized); 172 inline ~Mutex(); 200 explicit Mutex(Mutex* /*ignored*/) {} in Mutex() argument 202 Mutex(const Mutex&); 203 void operator=(const Mutex&); 219 Mutex::Mutex() : mutex_(0) { } in Mutex() function 220 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } in Mutex() function 221 Mutex::~Mutex() { assert(mutex_ == 0); } in ~Mutex() [all …]
|
/external/curl/tests/data/ |
D | test1554 | 22 -> Mutex lock 23 <- Mutex unlock 24 -> Mutex lock 25 <- Mutex unlock 26 -> Mutex lock 27 <- Mutex unlock 28 -> Mutex lock 29 <- Mutex unlock 30 -> Mutex lock 31 <- Mutex 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 …]
|
/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/gemmlowp/profiling/ |
D | instrumentation.h | 65 class Mutex { 67 Mutex(const Mutex&) = delete; 68 Mutex& operator=(const Mutex&) = delete; 70 Mutex() { pthread_mutex_init(&m, NULL); } in Mutex() function 71 ~Mutex() { pthread_mutex_destroy(&m); } in ~Mutex() 82 static Mutex* Profiler() { in Profiler() 83 static Mutex m; in Profiler() 87 static Mutex* EightBitIntGemm() { in EightBitIntGemm() 88 static Mutex m; in EightBitIntGemm() 95 ScopedLock(Mutex* m) : _m(m) { _m->Lock(); } in ScopedLock() [all …]
|
/external/v8/src/base/platform/ |
D | mutex.cc | 80 Mutex::Mutex() { in Mutex() function in v8::base::Mutex 88 Mutex::~Mutex() { in ~Mutex() 94 void Mutex::Lock() { in Lock() 100 void Mutex::Unlock() { in Unlock() 106 bool Mutex::TryLock() { in TryLock() 160 Mutex::Mutex() : native_handle_(SRWLOCK_INIT) { 167 Mutex::~Mutex() { 172 void Mutex::Lock() { 178 void Mutex::Unlock() { 184 bool Mutex::TryLock() {
|
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>, 210 template <typename Mutex, NullBehavior Behavior = NullBehavior::kRequireNotNull> 213 explicit LockGuard(Mutex* mutex) : mutex_(mutex) { in LockGuard() 223 Mutex* mutex_;
|
/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 | 173 static Mutex* log_silencer_count_mutex_ = NULL; 181 log_silencer_count_mutex_ = new Mutex; in InitLogSilencerCount() 315 struct Mutex::Internal { 323 Mutex::Mutex() in Mutex() function in google::protobuf::Mutex 328 Mutex::~Mutex() { in ~Mutex() 333 void Mutex::Lock() { in Lock() 340 void Mutex::Unlock() { in Unlock() 347 void Mutex::AssertHeld() { in AssertHeld() 355 struct Mutex::Internal { 359 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/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/libxcam/xcore/ |
D | xcam_mutex.h | 30 class Mutex { 33 XCAM_DEAD_COPY (Mutex); 36 Mutex () { in Mutex() function 42 virtual ~Mutex () { in ~Mutex() 78 int wait (Mutex &mutex) { in wait() 81 int timedwait (Mutex &mutex, uint32_t time_in_us) { in timedwait() 109 SmartLock (XCam::Mutex &mutex): _mutex(mutex) { in SmartLock() 116 XCam::Mutex &_mutex;
|
/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/tensorflow/tensorflow/core/kernels/ |
D | mutex_ops.cc | 36 class Mutex : public ResourceBase { class 38 explicit Mutex(OpKernelContext* c, const string& name) in Mutex() function in tensorflow::__anon07f294b10111::Mutex 54 explicit LockReleaser(Mutex* mutex) : mutex_(mutex) {} in LockReleaser() 71 Mutex* mutex_; 174 Mutex* mutex = nullptr; in ComputeAsync() 177 LookupOrCreateResource<Mutex>(c, HandleFromInput(c, 0), &mutex, in ComputeAsync() 178 [c](Mutex** ptr) { in ComputeAsync() 179 *ptr = new Mutex( in ComputeAsync() 194 Mutex::SharedLockReleaser&& lock) { in ComputeAsync() 227 lock_t.scalar<Variant>()().get<Mutex::SharedLockReleaser>(); in Compute() [all …]
|
/external/v8/src/compiler-dispatcher/ |
D | optimizing-compile-dispatcher.cc | 45 base::LockGuard<base::Mutex> lock_guard(&dispatcher_->ref_count_mutex_); in CompileTask() 72 base::LockGuard<base::Mutex> lock_guard(&dispatcher_->ref_count_mutex_); in RunInternal() 88 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in ~OptimizingCompileDispatcher() 98 base::LockGuard<base::Mutex> access_input_queue_(&input_queue_mutex_); in NextInput() 124 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in CompileNext() 133 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in FlushOutputQueue() 146 base::LockGuard<base::Mutex> access_input_queue_(&input_queue_mutex_); in Flush() 163 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Flush() 177 base::LockGuard<base::Mutex> lock_guard(&ref_count_mutex_); in Stop() 198 base::LockGuard<base::Mutex> access_output_queue_(&output_queue_mutex_); in InstallOptimizedFunctions() [all …]
|
D | compiler-dispatcher.cc | 209 base::LockGuard<base::Mutex> lock(&mutex_); in CanEnqueue() 305 base::LockGuard<base::Mutex> lock(&mutex_); in WaitForJobIfRunningOnBackground() 348 base::LockGuard<base::Mutex> lock(&mutex_); in FinishAllNow() 385 base::LockGuard<base::Mutex> lock(&mutex_); in AbortAll() 394 base::LockGuard<base::Mutex> lock(&mutex_); in AbortAll() 408 base::LockGuard<base::Mutex> lock(&mutex_); in AbortInactiveJobs() 417 base::LockGuard<base::Mutex> lock(&mutex_); in AbortInactiveJobs() 431 base::LockGuard<base::Mutex> lock(&mutex_); in AbortInactiveJobs() 453 base::LockGuard<base::Mutex> lock(&mutex_); in MemoryPressureNotification() 483 base::LockGuard<base::Mutex> lock(&mutex_); in ScheduleIdleTaskFromAnyThread() [all …]
|
/external/v8/src/libplatform/ |
D | default-foreground-task-runner.cc | 18 base::LockGuard<base::Mutex> guard(&lock_); in Terminate() 28 std::unique_ptr<Task> task, const base::LockGuard<base::Mutex>&) { in PostTaskLocked() argument 35 base::LockGuard<base::Mutex> guard(&lock_); in PostTask() 46 base::LockGuard<base::Mutex> guard(&lock_); in PostDelayedTask() 54 base::LockGuard<base::Mutex> guard(&lock_); in PostIdleTask() 65 base::LockGuard<base::Mutex> guard(&lock_); in PopTaskFromQueue() 86 const base::LockGuard<base::Mutex>&) { in PopTaskFromDelayedQueueLocked() argument 105 base::LockGuard<base::Mutex> guard(&lock_); in PopTaskFromIdleQueue() 115 const base::LockGuard<base::Mutex>&) { in WaitForTaskLocked() 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_;
|