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

12

/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/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 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 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...]
H A DThreadingWin.cpp139 static Mutex* atomicallyInitializedStaticMutex;
152 static Mutex& threadMapMutex()
154 static Mutex mutex;
163 atomicallyInitializedStaticMutex = new Mutex;
277 Mutex::Mutex() function in class:WTF::Mutex
283 Mutex::~Mutex()
288 void Mutex::lock()
294 bool Mutex
[all...]
/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/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/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/valgrind/main/drd/tests/
H A Dannotate_smart_pointer.cpp58 class Mutex class
61 Mutex() : m_mutex() function in class:Mutex
63 ~Mutex()
119 class Mutex class
122 Mutex() : m_mutex() function in class:Mutex
124 ~Mutex()
293 mutable Mutex m_mutex;
H A Dtsan_thread_wrappers_pthread.h158 /// Just a boolean condition. Used by Mutex::LockWhen and similar.
189 class Mutex { class
192 Mutex() { function in class:Mutex
196 // Mutex more friendly to hybrid detectors.
198 ~Mutex() {
261 class MutexLock { // Scoped Mutex Locker/Unlocker
263 MutexLock(Mutex *mu)
271 Mutex *mu_;
280 void Wait(Mutex *mu) { CHECK(0 == pthread_cond_wait(&cv_, &mu->mu_)); }
281 bool WaitWithTimeout(Mutex *m
[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/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dcompat.cpp133 Mutex::Mutex() {} // ?OP? function in class:Mutex
135 MutexLock::MutexLock(Mutex *mutex) {} // ?OP?
H A Dcompat.h54 class Mutex { class
56 Mutex();
59 DISALLOW_EVIL_CONSTRUCTORS(Mutex);
64 MutexLock(Mutex *);
181 register_lock_ = new Mutex;
185 static Mutex* register_lock_; // multithreading lock
195 Mutex *FlagRegister<T>::register_lock_ = 0;
/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/valgrind/unittest/
H A Dthread_wrappers_win.h79 class Mutex { class
82 Mutex() { ::InitializeCriticalSection(&cs_); } function in class:Mutex
83 ~Mutex() { ::DeleteCriticalSection(&cs_); }
154 void Wait(Mutex *mu) {
163 bool WaitWithTimeout(Mutex *mu, int millis) {
H A Dthread_wrappers_pthread.h148 class Mutex { class
151 Mutex() { function in class:Mutex
156 ~Mutex() {
222 void Wait(Mutex *mu) { CHECK(0 == pthread_cond_wait(&cv_, &mu->mu_)); }
223 bool WaitWithTimeout(Mutex *mu, int millis) {
237 // ReaderLock method of Mutex to be the real rw-lock.
/external/v8/src/
H A Dplatform.h95 class Mutex;
230 // Factory method for creating platform dependent Mutex.
231 // Please use delete to reclaim the storage for the returned Mutex.
232 static Mutex* CreateMutex();
513 // Mutex
518 class Mutex { class in namespace:v8::internal
520 virtual ~Mutex() {}
538 static Mutex* Create() {
543 // POD Mutex initialized lazily (i.e. the first time Pointer() is called).
553 Mutex, CreateMutexTrai
[all...]
/external/chromium/sdch/open-vcdiff/src/gtest/internal/
H A Dgtest-port.h86 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
430 class Mutex { class in namespace:testing::internal
432 Mutex() {} function in class:testing::internal::Mutex
433 explicit Mutex(int /*unused*/) {} function in class:testing::internal::Mutex
443 explicit GTestMutexLock(Mutex*) {} // NOLINT
/external/chromium/testing/gtest/include/gtest/internal/
H A Dgtest-port.h134 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
1169 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1172 // Mutex mutex;
1187 // To create a dynamic mutex, just define an object of type Mutex.
1230 // The Mutex class can only be used for mutexes created at runtime. It
1232 class Mutex : public MutexBase { class in namespace:testing::internal
1234 Mutex() { function in class:testing::internal::Mutex
1238 ~Mutex() {
1243 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);
1383 class Mutex { class in namespace:testing::internal
1385 Mutex() {} function in class:testing::internal::Mutex
[all...]
/external/gtest/include/gtest/internal/
H A Dgtest-port.h135 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
1203 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1206 // Mutex mutex;
1221 // To create a dynamic mutex, just define an object of type Mutex.
1264 // The Mutex class can only be used for mutexes created at runtime. It
1266 class Mutex : public MutexBase { class in namespace:testing::internal
1268 Mutex() { function in class:testing::internal::Mutex
1272 ~Mutex() {
1277 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);
1417 class Mutex { class in namespace:testing::internal
1419 Mutex() {} function in class:testing::internal::Mutex
[all...]
/external/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h136 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
1190 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1193 // Mutex mutex;
1208 // To create a dynamic mutex, just define an object of type Mutex.
1251 // The Mutex class can only be used for mutexes created at runtime. It
1253 class Mutex : public MutexBase { class in namespace:testing::internal
1255 Mutex() { function in class:testing::internal::Mutex
1259 ~Mutex() {
1264 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);
1404 class Mutex { class in namespace:testing::internal
1406 Mutex() {} function in class:testing::internal::Mutex
[all...]
/external/clang/include/clang/Frontend/
H A DASTUnit.h399 void *Mutex; // a llvm::sys::MutexImpl in debug; member in class:clang::ASTUnit::ConcurrencyState
/external/protobuf/gtest/include/gtest/internal/
H A Dgtest-port.h115 // Mutex, MutexLock, ThreadLocal, GetThreadCount()
748 class Mutex { class in namespace:testing::internal
750 Mutex() {} function in class:testing::internal::Mutex
751 explicit Mutex(int /*unused*/) {} function in class:testing::internal::Mutex
761 explicit GTestMutexLock(Mutex*) {} // NOLINT

Completed in 1442 milliseconds

12