HomeSort by relevance Sort by last modified time
    Searched refs:Mutex (Results 1 - 25 of 597) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/libs/rs/
rsMutex.h 26 class Mutex {
28 Mutex();
29 ~Mutex();
rsMutex.cpp 23 Mutex::Mutex() {
26 Mutex::~Mutex() {
30 bool Mutex::init() {
33 LOGE("Mutex::Mutex init failure");
39 bool Mutex::lock() {
43 LOGE("Mutex: error %i locking.", status);
49 bool Mutex::unlock()
    [all...]
  /frameworks/ex/variablespeed/jni/
no_synchronization.h 23 // The sola_time_scaler (which is the code that uses this mutex class) is
27 // fake mutex that does nothing.
29 class Mutex {
31 Mutex() {}
32 virtual ~Mutex() {}
37 DISALLOW_COPY_AND_ASSIGN(Mutex);
42 explicit MutexLock(Mutex* mu) : mu_(mu) {}
46 Mutex* const mu_;
  /external/webkit/Source/JavaScriptCore/wtf/
ThreadingNone.cpp 45 Mutex::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; }
ThreadingPrimitives.h 100 class Mutex {
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;
HashTable.cpp 37 static Mutex& hashTableStatsMutex()
39 AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex);
40 return mutex;
46 // if any thread was killed while holding the mutex.
dtoa.h 27 class Mutex;
29 extern WTF::Mutex* s_dtoaP5Mutex;
  /external/chromium/sdch/open-vcdiff/src/
mutex.h 33 // A simple mutex wrapper, supporting locks and read-write locks.
67 // function that tries to acquire this mutex -- but that all happens
68 // before this mutex's constructor has run. (This can happen even if
69 // the mutex and the function that uses the mutex are in the same .cc
70 // file.) Basically, because Mutex does non-trivial work in its
74 // The solution used here is to pair the actual mutex primitive with a
75 // bool that is set to true when the mutex is dynamically initialized.
76 // (Before that it's false.) Then we modify all mutex routines to
78 // it to true (which happens after the Mutex constructor has run.
    [all...]
  /external/llvm/include/llvm/Support/
MutexGuard.h 1 //===-- 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(); }
35 /// This is mostly used in assertions to validate that the correct mutex
37 bool holds(const sys::Mutex& lock) const { return &M == &lock;
    [all...]
  /frameworks/base/services/surfaceflinger/
Barrier.h 32 Mutex::Autolock _l(lock);
37 Mutex::Autolock _l(lock);
41 Mutex::Autolock _l(lock);
48 mutable Mutex lock;
  /external/icu4c/common/
mutex.h 10 // File: mutex.h
12 // Lightweight C++ wrapper for umtx_ C mutex functions
31 // should instantiate a Mutex object while doing so. You should make your own
32 // private mutex where possible.
41 // Mutex mutex(&myMutex); // or no args for the global lock
43 // // When 'mutex' goes out of scope and gets destroyed here, the lock is released
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 th
    [all...]
  /frameworks/base/include/private/binder/
Static.h 31 extern Mutex gProcessMutex;
35 extern Mutex gDefaultServiceManagerLock;
  /frameworks/base/include/private/media/
AudioEffectShared.h 37 Mutex lock;
43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
  /frameworks/base/libs/binder/
Static.cpp 29 Mutex gProcessMutex;
49 Mutex gDefaultServiceManagerLock;
  /frameworks/base/include/utils/
Singleton.h 33 Mutex::Autolock _l(sLock);
43 Mutex::Autolock _l(sLock);
54 static Mutex sLock;
63 * NOTE: we use a version of Mutex ctor that takes a parameter, because
69 template<> Mutex Singleton< TYPE >::sLock(Mutex::PRIVATE); \
threads.h 216 * Simple mutex class. The implementation is system-dependent.
218 * The mutex must be unlocked by the thread that locked it. They are not
221 class Mutex {
228 Mutex();
229 Mutex(const char* name);
230 Mutex(int type, const char* name = NULL);
231 ~Mutex();
233 // lock or unlock the mutex
240 // Manages the mutex automatically. It'll be locked when Autolock is
244 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock();
    [all...]
  /frameworks/base/drm/libdrmframework/plugins/common/util/include/
SessionMap.h 37 Mutex::Autolock lock(mLock);
51 Mutex::Autolock lock(mLock);
67 Mutex::Autolock lock(mLock);
77 Mutex::Autolock lock(mLock);
90 Mutex::Autolock lock(mLock);
105 Mutex::Autolock lock(mLock);
118 Mutex::Autolock lock(mLock);
123 Mutex::Autolock lock(mLock);
132 Mutex mLock;
  /external/valgrind/unittest/output_tests/
output_test1.cc 2 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.
  /frameworks/base/media/libmediaplayerservice/
MediaRecorderClient.cpp 65 Mutex::Autolock lock(mLock);
79 Mutex::Autolock lock(mLock);
90 Mutex::Autolock lock(mLock);
104 Mutex::Autolock lock(mLock);
118 Mutex::Autolock lock(mLock);
129 Mutex::Autolock lock(mLock);
140 Mutex::Autolock lock(mLock);
151 Mutex::Autolock lock(mLock);
162 Mutex::Autolock lock(mLock);
173 Mutex::Autolock lock(mLock)
    [all...]
  /external/webkit/Source/JavaScriptCore/wtf/gtk/
ThreadingGtk.cpp 48 static Mutex* atomicallyInitializedStaticMutex;
50 static Mutex& threadMapMutex()
52 DEFINE_STATIC_LOCAL(Mutex, mutex, ());
53 return mutex;
63 atomicallyInitializedStaticMutex = new Mutex;
175 Mutex::Mutex()
180 Mutex::~Mutex()
    [all...]
  /external/webkit/Source/JavaScriptCore/wtf/qt/
ThreadingQt.cpp 85 static Mutex* atomicallyInitializedStaticMutex;
87 static Mutex& threadMapMutex()
89 static Mutex mutex; local
90 return mutex;
144 atomicallyInitializedStaticMutex = new Mutex;
216 Mutex::Mutex()
221 Mutex::~Mutex()
    [all...]
  /external/protobuf/src/google/protobuf/stubs/
common.cc 126 static Mutex* log_silencer_count_mutex_ = NULL;
134 log_silencer_count_mutex_ = new Mutex;
239 // emulates google3/base/mutex.cc
243 struct Mutex::Internal {
244 CRITICAL_SECTION mutex; member in struct:google::protobuf::Mutex::Internal
251 Mutex::Mutex()
253 InitializeCriticalSection(&mInternal->mutex);
256 Mutex::~Mutex() {
284 pthread_mutex_t mutex; member in struct:google::protobuf::Mutex::Internal
    [all...]
  /system/media/wilhelm/src/android/
CallbackProtector.cpp 40 Mutex::Autolock _l(mLock);
60 Mutex::Autolock _l(mLock);
86 Mutex::Autolock _l(mLock);
112 Mutex::Autolock _l(mLock);
133 Mutex::Autolock _l(mLock);
  /frameworks/base/opengl/libagl/
TokenManager.cpp 37 Mutex::Autolock _l(mLock);
45 Mutex::Autolock _l(mLock);
56 Mutex::Autolock _l(mLock);
  /frameworks/base/media/libmedia/
IMediaDeathNotifier.cpp 28 Mutex IMediaDeathNotifier::sServiceLock;
38 Mutex::Autolock _l(sServiceLock);
65 Mutex::Autolock _l(sServiceLock);
73 Mutex::Autolock _l(sServiceLock);
84 Mutex::Autolock _l(sServiceLock);
104 Mutex::Autolock _l(sServiceLock);

Completed in 2381 milliseconds

1 2 3 4 5 6 7 8 91011>>