Searched defs:Mutex (Results 1 - 25 of 57) sorted by relevance

123

/external/deqp/framework/delibs/decpp/
H A DdeMutex.cpp34 * \param flags Mutex flags as described in deMutex.h.
37 Mutex::Mutex (deUint32 flags) function in class:de::Mutex
49 Mutex::~Mutex (void)
H A DdeMutex.hpp35 * Mutex class provides standard mutual exclusion lock functionality.
37 class Mutex class in namespace:de
40 Mutex (deUint32 flags = 0);
41 ~Mutex (void);
48 Mutex (const Mutex& other); // Not allowed!
49 Mutex& operator= (const Mutex& other); // Not allowed!
57 * ScopedLock provides helper for maintaining Mutex lock for the duration
64 ScopedLock (Mutex
[all...]
/external/icu/icu4c/source/common/
H A Dmutex.h33 // should instantiate a Mutex object while doing so. You should make your own
43 // Mutex mutex(&myMutex); // or no args for the global lock
48 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function
49 // returning a Mutex. This is a common mistake which silently slips through the
53 class U_COMMON_API Mutex : public UMemory { class in inherits:UMemory
55 inline Mutex(UMutex *mutex = NULL);
56 inline ~Mutex();
61 Mutex(const Mutex &other); // forbid copying of this class
62 Mutex
65 inline Mutex::Mutex(UMutex *mutex) function in class:Mutex
[all...]
/external/compiler-rt/test/tsan/
H A Dignore_sync.cc9 pthread_mutex_t Mutex = PTHREAD_MUTEX_INITIALIZER; variable
13 pthread_mutex_lock(&Mutex);
15 pthread_mutex_unlock(&Mutex);
23 pthread_mutex_lock(&Mutex);
25 pthread_mutex_unlock(&Mutex);
H A Dmutex_annotations.cc8 class Mutex { class
34 Mutex m;
/external/clang/test/Misc/
H A Dast-dump-color.cpp18 class __attribute__((lockable)) Mutex { class
65 //CHECK: {{^}}[[Blue]]|-[[RESET]][[GREEN]]CXXRecordDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]line:18:1[[RESET]], [[Yellow]]line:25:1[[RESET]]> [[Yellow]]line:18:33[[RESET]] class[[CYAN]] Mutex[[RESET]] definition{{$}}
67 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXRecordDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:1[[RESET]], [[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit class[[CYAN]] Mutex[[RESET]]{{$}}
78 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]line:18:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit used[[CYAN]] Mutex[[RESET]] [[Green]]'void (void) noexcept'[[RESET]] inline{{.*$}}
80 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit constexpr[[CYAN]] Mutex[[RESET]] [[Green]]'void (const class Mutex &)'[[RESET]] inline{{ .*$}}
81 //CHECK: {{^}}[[Blue]]| | `-[[RESET]][[GREEN]]ParmVarDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] [[Green]]'const class Mutex &'[[RESET]]{{$}}
82 //CHECK: {{^}}[[Blue]]| `-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit constexpr[[CYAN]] Mutex[[RESET]] [[Green]]'void (class Mutex &&)'[[RESET]] inline{{ .*$}}
83 //CHECK: {{^}}[[Blue]]| `-[[RESET]][[GREEN]]ParmVarDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] [[Green]]'class Mutex
[all...]
H A Dast-dump-attr.cpp44 class __attribute__((lockable)) Mutex { class
51 class Mutex TestVariadicExpr __attribute__((acquired_after(mu1, mu2)));
/external/v8/src/base/platform/
H A Dmutex.cc113 Mutex::Mutex() { function in class:v8::base::Mutex
121 Mutex::~Mutex() {
127 void Mutex::Lock() {
133 void Mutex::Unlock() {
139 bool Mutex::TryLock() {
/external/compiler-rt/lib/tsan/benchmarks/
H A Dvts_many_threads_bench.cc31 class __attribute__((aligned(64))) Mutex { class
33 Mutex() { pthread_mutex_init(&m_, NULL); } function in class:Mutex
34 ~Mutex() { pthread_mutex_destroy(&m_); }
43 Mutex mutexes[kNumMutexes];
/external/libxcam/xcore/
H A Dxcam_mutex.h30 class Mutex { class in namespace:XCam
33 XCAM_DEAD_COPY (Mutex);
36 Mutex () { function in class:XCam::Mutex
39 XCAM_LOG_WARNING ("Mutex init failed %d: %s", error_num, strerror(error_num));
42 virtual ~Mutex () {
45 XCAM_LOG_WARNING ("Mutex destroy failed %d: %s", error_num, strerror(error_num));
52 XCAM_LOG_WARNING ("Mutex lock failed %d: %s", error_num, strerror(error_num));
58 XCAM_LOG_WARNING ("Mutex unlock failed %d: %s", error_num, strerror(error_num));
78 int wait (Mutex &mutex) {
81 int timedwait (Mutex
[all...]
/external/mesa3d/src/egl/main/
H A Deglglobals.h52 mtx_t *Mutex; member in struct:_egl_global
/external/gflags/src/
H A Dmutex.h40 // problems when we have multiple versions of Mutex in each shared object.
67 // file.) Basically, because Mutex does non-trivial work in its
75 // it to true (which happens after the Mutex constructor has run.)
98 // the Mutex global destructor runs before some other global
103 // weird to a Mutex's memory after it is destroyed, but for a
157 class Mutex { class in namespace:MUTEX_NAMESPACE
162 // Create a Mutex that is not held by anybody. This constructor is
164 inline Mutex();
165 // This constructor should be used for global, static Mutex objects.
169 explicit inline Mutex(LinkerInitialize
200 explicit Mutex(Mutex* /*ignored*/) {} function in class:MUTEX_NAMESPACE::Mutex
219 Mutex::Mutex() : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex
220 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex
232 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex
236 Mutex::Mutex(LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex
256 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex
260 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex
281 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex
285 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex
[all...]
/external/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.h23 struct Mutex { struct in namespace:__dsan
41 typedef AddrHashMap<Mutex, 31051> MutexHashMap;
/external/llvm/include/llvm/Support/
H A DMutex.h1 //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===//
10 // This file declares the llvm::sys::Mutex class.
25 /// @brief Platform agnostic Mutex class.
137 /// Mutex - A standard, always enforced mutex.
138 typedef SmartMutex<false> Mutex; typedef in namespace:llvm::sys
/external/swiftshader/third_party/LLVM/include/llvm/Support/
H A DMutex.h1 //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===//
10 // This file declares the llvm::sys::Mutex class.
24 /// @brief Platform agnostic Mutex class.
133 /// Mutex - A standard, always enforced mutex.
134 typedef SmartMutex<false> Mutex; typedef in namespace:llvm::sys
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DMutex.h1 //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===//
10 // This file declares the llvm::sys::Mutex class.
25 /// @brief Platform agnostic Mutex class.
137 /// Mutex - A standard, always enforced mutex.
138 typedef SmartMutex<false> Mutex; typedef in namespace:llvm::sys
/external/clang/test/Sema/
H A 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);
H A Dattr-capabilities.c4 struct __attribute__((shared_capability("mutex"))) Mutex {}; struct
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_mutex.h43 class Mutex { class in namespace:__tsan
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;
H A Dtsan_mutex.cc123 Printf("Mutex %d participates in a cycle\n", i);
211 Mutex::Mutex(MutexType type, StatType stat_type) { function in class:__tsan::Mutex
223 Mutex::~Mutex() {
227 void Mutex::Lock() {
249 void Mutex::Unlock() {
258 void Mutex::ReadLock() {
276 void Mutex::ReadUnlock() {
286 void Mutex
[all...]
/external/protobuf/src/google/protobuf/stubs/
H A Dmutex.h45 // A Mutex is a non-reentrant (aka non-recursive) mutex. At most one thread T
46 // may hold a mutex at a given time. If T attempts to Lock() the same Mutex
48 class LIBPROTOBUF_EXPORT Mutex { class in namespace:google::protobuf::internal
50 // Create a Mutex that is not held by anybody.
51 Mutex();
54 ~Mutex();
56 // Block if necessary until this Mutex is free, then acquire it exclusively.
59 // Release this Mutex. Caller must hold it exclusively.
62 // Crash if this Mutex is not held exclusively by this thread.
70 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Mutex);
[all...]
/external/gemmlowp/profiling/
H A Dinstrumentation.h65 class Mutex { class in namespace:gemmlowp
67 Mutex(const Mutex&) = delete;
68 Mutex& operator=(const Mutex&) = delete;
70 Mutex() { pthread_mutex_init(&m, NULL); } function in class:gemmlowp::Mutex
71 ~Mutex() { pthread_mutex_destroy(&m); }
82 static Mutex* Profiler() {
83 static Mutex m;
87 static Mutex* EightBitIntGem
[all...]
/external/valgrind/drd/tests/
H A Dannotate_smart_pointer.cpp59 class Mutex class
62 Mutex() : m_mutex() function in class:Mutex
64 ~Mutex()
120 class Mutex class
123 Mutex() : m_mutex() function in class:Mutex
125 ~Mutex()
294 mutable Mutex m_mutex;
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-negative.cpp30 class __attribute__((lockable)) Mutex { class
40 const Mutex& operator!() const { return *this; }
50 Mutex mu;
63 Mutex mu;
109 Mutex &mutex();
H A Dwarn-thread-safety-verbose.cpp27 class __attribute__((lockable)) Mutex { class
37 const Mutex& operator!() const { return *this; }
45 Mutex mu;

Completed in 786 milliseconds

123