Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/external/regex-re2/util/
Dmutex.h50 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/
Dwarn-thread-safety-parsing.cpp27 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 …]
Dwarn-thread-safety-analysis.cpp30 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/
DdeMutex.hpp37 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 …]
DdeMutex.cpp37 Mutex::Mutex (deUint32 flags) in Mutex() function in de::Mutex
49 Mutex::~Mutex (void) in ~Mutex()
/external/icu/icu4c/source/common/
Dmutex.h53 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/
Dtsan_test_util.h32 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 …]
Dtsan_test_util_posix.cc137 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 …]
Dtsan_mutex.cc24 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/
Dthreading.h108 #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/
Dcommon.cc171 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 …]
Dmutex.h48 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/
Dmutex.h37 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_;
Dmutex.cc113 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/
Dtsan_mutex.h43 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/
Dhash.c65 _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 …]
Drenderbuffer.c41 _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/
Dcompiler-dispatcher-tracer.cc91 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 …]
Doptimizing-compile-dispatcher.cc39 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/
Dtsan_mutex_test.cc96 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/
Dwarn-thread-safety-analysis.c28 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/
Dignore_sync.cc9 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/
Dscoped_lock.hpp23 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/
Dtask-queue.cc18 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/
Dtsan_unittest.cpp54 #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 …]

12345678910>>...14