Searched refs:Mutex (Results 1 - 25 of 324) sorted by relevance

1234567891011>>

/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/deqp/framework/delibs/decpp/
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...]
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)
/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/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/ltp/testcases/kernel/io/disktest/
H A Dthreading.h108 #define LOCK(Mutex) WaitForSingleObject((void *) Mutex, INFINITE)
109 #define UNLOCK(Mutex) ReleaseMutex((void *) Mutex)
113 #define LOCK(Mutex) \
114 pthread_cleanup_push((void *) pthread_mutex_unlock, (void *) &Mutex); \
115 pthread_mutex_lock(&Mutex)
116 #define UNLOCK(Mutex) \
117 pthread_mutex_unlock(&Mutex); \
/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;
/external/swiftshader/third_party/LLVM/include/llvm/Support/
H A DMutexGuard.h1 //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===//
10 // This file defines a guard for a block of code that ensures a Mutex is locked
18 #include "llvm/Support/Mutex.h"
21 /// Instances of this class acquire a given Mutex Lock when constructed and
24 /// destruction of the object will always release the Mutex and thus avoid
26 /// @brief Guard a section of code with a Mutex.
28 sys::Mutex &M;
32 MutexGuard(sys::Mutex &m) : M(m) { M.acquire(); }
37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
/external/parameter-framework/asio/include/asio/detail/
H A Dscoped_lock.hpp23 template <typename Mutex>
32 scoped_lock(Mutex& m, adopt_lock_t)
39 explicit scoped_lock(Mutex& m)
80 Mutex& mutex()
87 Mutex& mutex_;
/external/parameter-framework/asio-1.10.6/include/asio/detail/
H A Dscoped_lock.hpp23 template <typename Mutex>
32 scoped_lock(Mutex& m, adopt_lock_t)
39 explicit scoped_lock(Mutex& m)
80 Mutex& mutex()
87 Mutex& mutex_;
/external/v8/src/base/platform/
H A Dmutex.h23 // Mutex
35 // while still owned by some thread. The Mutex class is non-copyable.
37 class V8_BASE_EXPORT Mutex final {
39 Mutex();
40 ~Mutex();
92 DISALLOW_COPY_AND_ASSIGN(Mutex);
96 // POD Mutex initialized lazily (i.e. the first time Pointer() is called).
101 // LockGuard<Mutex> guard(my_mutex.Pointer());
105 typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>,
[all...]
H A Dcondition-variable.h28 // on a Mutex first. The |Wait()| and |WaitFor()| operations atomically release
51 void Wait(Mutex* mutex);
60 bool WaitFor(Mutex* mutex, const TimeDelta& rel_time) WARN_UNUSED_RESULT;
75 Mutex* mutex() { return &mutex_; }
81 Mutex mutex_;
108 // LockGuard<Mutex> lock_guard(&my_mutex);
/external/llvm/include/llvm/Support/
H A DMutexGuard.h1 //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===//
10 // This file defines a guard for a block of code that ensures a Mutex is locked
18 #include "llvm/Support/Mutex.h"
21 /// Instances of this class acquire a given Mutex Lock when constructed and
24 /// destruction of the object will always release the Mutex and thus avoid
26 /// @brief Guard a section of code with a Mutex.
28 sys::Mutex &M;
32 MutexGuard(sys::Mutex &m) : M(m) { M.lock(); }
37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DMutexGuard.h1 //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===//
10 // This file defines a guard for a block of code that ensures a Mutex is locked
18 #include "llvm/Support/Mutex.h"
21 /// Instances of this class acquire a given Mutex Lock when constructed and
24 /// destruction of the object will always release the Mutex and thus avoid
26 /// @brief Guard a section of code with a Mutex.
28 sys::Mutex &M;
32 MutexGuard(sys::Mutex &m) : M(m) { M.lock(); }
37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
/external/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util.h32 class Mutex { class
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
[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/deqp/framework/platform/lnx/
H A DtcuLnx.hpp50 de::Mutex m_mutex;
/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/v8/src/
H A Dlocked-queue.h32 mutable base::Mutex head_mutex_;
33 base::Mutex tail_mutex_;
/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/clang/test/SemaCXX/
H A Dwarn-thread-safety-parsing.cpp27 class LOCKABLE Mutex { class
45 Mutex mu;
46 Mutex getMu() {
49 Mutex * getMuPointer() {
63 Mutex mu1;
65 Mutex mu2;
68 Mutex* muPointer;
69 Mutex** muDoublePointer = & muPointer;
70 Mutex& muRef = mu1;
77 Mutex foom
[all...]
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutex_test.cc96 TEST(Mutex, Write) {
97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
98 TestData<Mutex> data(&mtx);
101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data);
106 TEST(Mutex, ReadWrite) {
107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
108 TestData<Mutex> data(&mtx);
111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data);
116 TEST(Mutex, SpinWrite) {
/external/v8/src/libplatform/
H A Dtask-queue.cc18 base::LockGuard<base::Mutex> guard(&lock_);
25 base::LockGuard<base::Mutex> guard(&lock_);
35 base::LockGuard<base::Mutex> guard(&lock_);
52 base::LockGuard<base::Mutex> guard(&lock_);
61 base::LockGuard<base::Mutex> guard(&lock_);
/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...]

Completed in 4203 milliseconds

1234567891011>>