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

1 2 3 4 5 6 7 8 91011>>

  /external/libnfc-nci/halimpl/bcm2079x/adaptation/
Mutex.h 21 * Encapsulate a mutex for thread synchronization.
29 class Mutex
34 ** Function: Mutex
41 Mutex ();
46 ** Function: ~Mutex
53 ~Mutex ();
60 ** Description: Block the thread and try lock the mutex.
72 ** Description: Unlock a mutex to unblock a thread.
84 ** Description: Try to lock the mutex.
86 ** Returns: True if the mutex is locked
    [all...]
Mutex.cpp 21 * Encapsulate a mutex for thread synchronization.
27 #include "Mutex.h"
32 ** Function: Mutex
39 Mutex::Mutex ()
45 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
52 ** Function: ~Mutex
59 Mutex::~Mutex ()
    [all...]
CondVar.h 27 #include "Mutex.h"
66 void wait (Mutex& mutex);
79 bool wait (Mutex& mutex, long millisec);
  /frameworks/rs/
rsMutex.h 26 class Mutex {
28 Mutex();
29 ~Mutex();
rsMutex.cpp 23 Mutex::Mutex() {
26 Mutex::~Mutex() {
30 bool Mutex::init() {
33 ALOGE("Mutex::Mutex init failure");
39 bool Mutex::lock() {
43 ALOGE("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_;
  /system/core/include/utils/
Mutex.h 37 * Simple mutex class. The implementation is system-dependent.
39 * The mutex must be unlocked by the thread that locked it. They are not
42 class Mutex {
49 Mutex();
50 Mutex(const char* name);
51 Mutex(int type, const char* name = NULL);
52 ~Mutex();
54 // lock or unlock the mutex
61 // Manages the mutex automatically. It'll be locked when Autolock is
65 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock();
    [all...]
  /packages/apps/Nfc/nci/jni/
Mutex.h 18 * Encapsulate a mutex for thread synchronization.
25 class Mutex
30 ** Function: Mutex
37 Mutex ();
42 ** Function: ~Mutex
49 ~Mutex ();
56 ** Description: Block the thread and try lock the mutex.
68 ** Description: Unlock a mutex to unblock a thread.
80 ** Description: Try to lock the mutex.
82 ** Returns: True if the mutex is locked
    [all...]
Mutex.cpp 18 * Encapsulate a mutex for thread synchronization.
21 #include "Mutex.h"
29 ** Function: Mutex
36 Mutex::Mutex ()
42 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
49 ** Function: ~Mutex
56 Mutex::~Mutex ()
    [all...]
CondVar.h 23 #include "Mutex.h"
62 void wait (Mutex& mutex);
75 bool wait (Mutex& mutex, long millisec);
  /external/chromium_org/third_party/re2/util/
mutex.h 6 * A simple mutex wrapper, supporting locks and read-write locks.
51 # error Need to implement mutex.h for your architecture, or #define NO_THREADS
54 class Mutex {
56 // Create a Mutex that is not held by anybody.
57 inline Mutex();
60 inline ~Mutex();
70 inline void ReaderUnlock(); // Release a read share of this Mutex
78 // Catch the error of writing Mutex when intending MutexLock.
79 Mutex(Mutex *ignored)
    [all...]
  /external/regex-re2/util/
mutex.h 6 * A simple mutex wrapper, supporting locks and read-write locks.
47 # error Need to implement mutex.h for your architecture, or #define NO_THREADS
50 class Mutex {
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)
    [all...]
  /external/ceres-solver/internal/ceres/
mutex.h 31 // A simple mutex wrapper, supporting locks and read-write locks.
39 // problems when we have multiple versions of Mutex in each shared object.
63 // function that tries to acquire this mutex -- but that all happens
64 // before this mutex's constructor has run. (This can happen even if
65 // the mutex and the function that uses the mutex are in the same .cc
66 // file.) Basically, because Mutex does non-trivial work in its
70 // The solution used here is to pair the actual mutex primitive with a
71 // bool that is set to true when the mutex is dynamically initialized.
72 // (Before that it's false.) Then we modify all mutex routines t
    [all...]
  /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/chromium_org/third_party/tcmalloc/chromium/src/base/
simple_mutex.h 33 // A simple mutex wrapper, supporting locks and read-write locks.
46 // problems when we have multiple versions of Mutex in each shared object.
62 // function that tries to acquire this mutex -- but that all happens
63 // before this mutex's constructor has run. (This can happen even if
64 // the mutex and the function that uses the mutex are in the same .cc
65 // file.) Basically, because Mutex does non-trivial work in its
69 // The solution used here is to pair the actual mutex primitive with a
70 // bool that is set to true when the mutex is dynamically initialized.
71 // (Before that it's false.) Then we modify all mutex routines t
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/base/
simple_mutex.h 33 // A simple mutex wrapper, supporting locks and read-write locks.
46 // problems when we have multiple versions of Mutex in each shared object.
62 // function that tries to acquire this mutex -- but that all happens
63 // before this mutex's constructor has run. (This can happen even if
64 // the mutex and the function that uses the mutex are in the same .cc
65 // file.) Basically, because Mutex does non-trivial work in its
69 // The solution used here is to pair the actual mutex primitive with a
70 // bool that is set to true when the mutex is dynamically initialized.
71 // (Before that it's false.) Then we modify all mutex routines t
    [all...]
  /external/open-vcdiff/gflags/src/
mutex.h 33 // A simple mutex wrapper, supporting locks and read-write locks.
46 // problems when we have multiple versions of Mutex in each shared object.
70 // function that tries to acquire this mutex -- but that all happens
71 // before this mutex's constructor has run. (This can happen even if
72 // the mutex and the function that uses the mutex are in the same .cc
73 // file.) Basically, because Mutex does non-trivial work in its
77 // The solution used here is to pair the actual mutex primitive with a
78 // bool that is set to true when the mutex is dynamically initialized.
79 // (Before that it's false.) Then we modify all mutex routines t
    [all...]
  /external/chromium_org/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/
mutex.h 13 typedef base::Lock Mutex;
17 explicit MutexLock(Mutex* m) : auto_lock_(*m) {}
  /external/compiler-rt/lib/tsan/rtl/
tsan_mutex.h 39 class Mutex {
41 explicit Mutex(MutexType type, StatType stat_type);
42 ~Mutex();
61 Mutex(const Mutex&);
62 void operator = (const Mutex&);
65 typedef GenericScopedLock<Mutex> Lock;
66 typedef GenericScopedReadLock<Mutex> ReadLock;
  /art/runtime/
locks.cc 19 #include "base/mutex.h"
23 Mutex* Locks::abort_lock_ = NULL;
24 Mutex* Locks::breakpoint_lock_ = NULL;
27 Mutex* Locks::logging_lock_ = NULL;
29 Mutex* Locks::runtime_shutdown_lock_ = NULL;
30 Mutex* Locks::thread_list_lock_ = NULL;
31 Mutex* Locks::thread_suspend_count_lock_ = NULL;
32 Mutex* Locks::trace_lock_ = NULL;
33 Mutex* Locks::unexpected_signal_lock_ = NULL;
49 logging_lock_ = new Mutex("logging lock", kLoggingLock, true)
    [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...]
  /external/openfst/src/include/fst/
lock.h 51 class Mutex {
53 Mutex() {}
56 DISALLOW_COPY_AND_ASSIGN(Mutex);
61 MutexLock(Mutex *) {}
69 ReaderMutexLock(Mutex *) {}
  /external/chromium_org/third_party/leveldatabase/src/port/
port_posix.cc 22 Mutex::Mutex() { PthreadCall("init mutex", pthread_mutex_init(&mu_, NULL)); }
24 Mutex::~Mutex() { PthreadCall("destroy mutex", pthread_mutex_destroy(&mu_)); }
26 void Mutex::Lock() { PthreadCall("lock", pthread_mutex_lock(&mu_)); }
28 void Mutex::Unlock() { PthreadCall("unlock", pthread_mutex_unlock(&mu_)); }
30 CondVar::CondVar(Mutex* mu)
  /external/chromium_org/third_party/WebKit/Source/wtf/
ThreadingPrimitives.h 74 class WTF_EXPORT Mutex {
75 WTF_MAKE_NONCOPYABLE(Mutex); WTF_MAKE_FAST_ALLOCATED;
77 Mutex();
78 ~Mutex();
90 typedef Locker<Mutex> MutexLocker;
95 MutexTryLocker(Mutex& mutex) : m_mutex(mutex), m_locked(mutex.tryLock()) { }
105 Mutex& m_mutex
    [all...]
  /external/chromium_org/v8/src/platform/
mutex.h 44 // Mutex
47 // data from being simultaneously accessed by multiple threads. A mutex offers
49 // - A calling thread owns a mutex from the time that it successfully calls
51 // - When a thread owns a mutex, all other threads will block (for calls to
53 // attempt to claim ownership of the mutex.
54 // A calling thread must not own the mutex prior to calling |Lock()| or
55 // |TryLock()|. The behavior of a program is undefined if a mutex is destroyed
56 // while still owned by some thread. The Mutex class is non-copyable.
58 class Mutex V8_FINAL {
60 Mutex();
    [all...]

Completed in 913 milliseconds

1 2 3 4 5 6 7 8 91011>>