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

1234567891011

/external/webkit/Source/JavaScriptCore/wtf/
H A DThreadingNone.cpp45 Mutex::Mutex() { } function in class:WTF::Mutex
46 Mutex::~Mutex() { }
47 void Mutex::lock() { }
48 bool Mutex::tryLock() { return false; }
49 void Mutex::unlock() { }
53 void ThreadCondition::wait(Mutex&) { }
54 bool ThreadCondition::timedWait(Mutex&, double) { return false; }
H A DHashTable.cpp37 static Mutex& hashTableStatsMutex()
39 AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex);
H A DThreadingPrimitives.h100 class Mutex { class in namespace:WTF
101 WTF_MAKE_NONCOPYABLE(Mutex); WTF_MAKE_FAST_ALLOCATED;
103 Mutex();
104 ~Mutex();
116 typedef Locker<Mutex> MutexLocker;
142 void wait(Mutex& mutex);
145 bool timedWait(Mutex&, double absoluteTime);
161 using WTF::Mutex;
H A Ddtoa.h27 class Mutex;
29 extern WTF::Mutex* s_dtoaP5Mutex;
H A DThreadingPthreads.cpp66 static Mutex* atomicallyInitializedStaticMutex;
70 static Mutex& threadMapMutex()
72 DEFINE_STATIC_LOCAL(Mutex, mutex, ());
81 atomicallyInitializedStaticMutex = new Mutex;
251 Mutex::Mutex() function in class:WTF::Mutex
262 Mutex::~Mutex()
267 void Mutex::lock()
273 bool Mutex
[all...]
/external/chromium/sdch/open-vcdiff/src/
H A Dmutex.h70 // file.) Basically, because Mutex does non-trivial work in its
78 // it to true (which happens after the Mutex constructor has run.)
135 class Mutex { class
137 // Create a Mutex that is not held by anybody. This constructor is
139 // See below for a recommendation for constructing global Mutex
141 inline Mutex();
144 inline ~Mutex();
156 inline void ReaderUnlock(); // Release a read share of this Mutex
169 // Catch the error of writing Mutex when intending MutexLock.
170 Mutex(Mute function in class:Mutex
190 Mutex::Mutex() : mutex_(0) { } function in class:Mutex
202 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } function in class:Mutex
220 Mutex::Mutex() { function in class:Mutex
243 Mutex::Mutex() { function in class:Mutex
[all...]
/external/regex-re2/util/
H A Dmutex.h50 class Mutex { class in namespace:re2
52 // Create a Mutex that is not held by anybody.
53 inline Mutex();
56 inline ~Mutex();
66 inline void ReaderUnlock(); // Release a read share of this Mutex
74 // Catch the error of writing Mutex when intending MutexLock.
75 Mutex(Mutex *ignored) {} function in class:re2::Mutex
77 Mutex(const Mutex
95 Mutex::Mutex() : mutex_(0) { } function in class:re2::Mutex
108 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); } function in class:re2::Mutex
123 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL)); } function in class:re2::Mutex
134 Mutex::Mutex() { InitializeCriticalSection(&mutex_); } function in class:re2::Mutex
[all...]
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DMutex.h29 class Mutex class
34 ** Function: Mutex
41 Mutex ();
46 ** Function: ~Mutex
53 ~Mutex ();
H A DMutex.cpp27 #include "Mutex.h"
32 ** Function: Mutex
39 Mutex::Mutex () function in class:Mutex
45 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
52 ** Function: ~Mutex
59 Mutex::~Mutex ()
64 ALOGE ("Mutex
[all...]
H A DCondVar.h27 #include "Mutex.h"
66 void wait (Mutex& mutex);
79 bool wait (Mutex& mutex, long millisec);
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_mutex.h37 class Mutex { class in namespace:__tsan
39 explicit Mutex(MutexType type, StatType stat_type);
40 ~Mutex();
59 Mutex(const Mutex&);
60 void operator = (const Mutex&);
63 typedef GenericScopedLock<Mutex> Lock;
64 typedef GenericScopedReadLock<Mutex> ReadLock;
/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.acquire(); }
37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
/external/openfst/src/include/fst/
H A Dlock.h48 class Mutex { class in namespace:fst
50 Mutex() {} function in class:fst::Mutex
53 DISALLOW_COPY_AND_ASSIGN(Mutex);
58 MutexLock(Mutex *) {}
/external/icu4c/common/
H A Dmutex.h31 // should instantiate a Mutex object while doing so. You should make your own
41 // Mutex mutex(&myMutex); // or no args for the global lock
46 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function
47 // returning a Mutex. This is a common mistake which silently slips through the
51 class U_COMMON_API Mutex : public UMemory { class in inherits:UMemory
53 inline Mutex(UMTX *mutex = NULL);
54 inline ~Mutex();
59 Mutex(const Mutex &other); // forbid copying of this class
60 Mutex
63 inline Mutex::Mutex(UMTX *mutex) function in class:Mutex
[all...]
/external/compiler-rt/lib/tsan/rtl_tests/
H A Dtsan_test_util.h32 class Mutex { class
36 explicit Mutex(Type type = Normal);
37 ~Mutex();
55 Mutex(const Mutex&);
56 void operator = (const Mutex&);
96 void Create(const Mutex &m);
97 void Destroy(const Mutex &m);
98 void Lock(const Mutex &m);
99 bool TryLock(const Mutex
[all...]
H A Dtsan_test_util_linux.cc95 Mutex::Mutex(Type type)
100 Mutex::~Mutex() {
104 void Mutex::Init() {
117 void Mutex::StaticInit() {
125 void Mutex::Destroy() {
136 void Mutex::Lock() {
146 bool Mutex::TryLock() {
157 void Mutex
[all...]
/external/valgrind/unittest/output_tests/
H A Doutput_test1.cc2 Mutex mu1; // This Mutex guards var.
3 Mutex mu2; // This Mutex is not related to var.
7 MutexLock lock(&mu1); // Correct Mutex.
12 MutexLock lock(&mu2); // Wrong Mutex.
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-parsing.cpp25 class LOCKABLE Mutex { class
35 Mutex mu;
36 Mutex getMu() {
39 Mutex * getMuPointer() {
53 Mutex mu1;
55 Mutex mu2;
58 Mutex* muPointer;
59 Mutex** muDoublePointer = & muPointer;
60 Mutex& muRef = mu1;
67 Mutex foom
[all...]
/external/webkit/Source/JavaScriptCore/wtf/gtk/
H A DThreadingGtk.cpp48 static Mutex* atomicallyInitializedStaticMutex;
50 static Mutex& threadMapMutex()
52 DEFINE_STATIC_LOCAL(Mutex, mutex, ());
63 atomicallyInitializedStaticMutex = new Mutex;
175 Mutex::Mutex() function in class:WTF::Mutex
180 Mutex::~Mutex()
184 void Mutex::lock()
189 bool Mutex
[all...]
/external/webkit/Source/JavaScriptCore/wtf/qt/
H A DThreadingQt.cpp85 static Mutex* atomicallyInitializedStaticMutex;
87 static Mutex& threadMapMutex()
89 static Mutex mutex;
144 atomicallyInitializedStaticMutex = new Mutex;
216 Mutex::Mutex() function in class:WTF::Mutex
221 Mutex::~Mutex()
226 void Mutex::lock()
231 bool Mutex
[all...]
/external/compiler-rt/lib/tsan/unit_tests/
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/protobuf/src/google/protobuf/stubs/
H A Dcommon.cc126 static Mutex* log_silencer_count_mutex_ = NULL;
134 log_silencer_count_mutex_ = new Mutex;
243 struct Mutex::Internal {
251 Mutex::Mutex() function in class:google::protobuf::Mutex
256 Mutex::~Mutex() {
261 void Mutex::Lock() {
268 void Mutex::Unlock() {
275 void Mutex
287 Mutex::Mutex() function in class:google::protobuf::Mutex
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/cc/
H A DCCCompletionEvent.h56 Mutex m_mutex;
/external/webkit/Source/WebCore/platform/sql/
H A DSQLiteDatabase.h112 Mutex& databaseMutex() { return m_lockingMutex; }
148 Mutex m_authorizerLock;
151 Mutex m_lockingMutex;
154 Mutex m_databaseClosingMutex;
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
H A DImagesManager.cpp64 android::Mutex::Autolock lock(m_imagesLock);
77 android::Mutex::Autolock lock(m_imagesLock);
88 android::Mutex::Autolock lock(m_imagesLock);
102 android::Mutex::Autolock lock(m_imagesLock);
121 android::Mutex::Autolock lock(m_imagesLock);
135 android::Mutex::Autolock lock(m_imagesLock);

Completed in 578 milliseconds

1234567891011