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

1 2 3

  /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...]
  /external/chromium_org/third_party/icu/source/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...]
  /external/deqp/framework/delibs/decpp/
deMutex.cpp 34 * \param flags Mutex flags as described in deMutex.h.
35 * DE_MUTEX_RECURSIVE flag enables recursive mutex.
37 Mutex::Mutex (deUint32 flags)
49 Mutex::~Mutex (void)
deMutex.hpp 35 * Mutex class provides standard mutual exclusion lock functionality.
37 class Mutex
40 Mutex (deUint32 flags = 0);
41 ~Mutex (void);
48 Mutex (const Mutex& other); // Not allowed!
49 Mutex& operator= (const Mutex& other); // Not allowed!
55 * \brief Scoped mutex lock.
57 * ScopedLock provides helper for maintaining Mutex lock for the duratio
    [all...]
  /external/icu/icu4c/source/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...]
  /external/chromium_org/mojo/public/cpp/utility/lib/
mutex.cc 5 #include "mojo/public/cpp/utility/mutex.h"
14 Mutex::Mutex() {
26 Mutex::~Mutex() {
31 void Mutex::Lock() {
36 void Mutex::Unlock() {
41 bool Mutex::TryLock() {
47 void Mutex::AssertHeld() {
  /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/test/tsan/
ignore_sync.cc 9 pthread_mutex_t Mutex = PTHREAD_MUTEX_INITIALIZER;
13 pthread_mutex_lock(&Mutex);
15 pthread_mutex_unlock(&Mutex);
23 pthread_mutex_lock(&Mutex);
25 pthread_mutex_unlock(&Mutex);
  /external/chromium_org/third_party/mesa/src/src/egl/main/
eglglobals.h 44 _EGLMutex *Mutex;
  /external/mesa3d/src/egl/main/
eglglobals.h 44 _EGLMutex *Mutex;
  /external/chromium_org/mojo/public/cpp/utility/
mutex.h 26 class Mutex {
29 Mutex() : mutex_(internal::kPthreadMutexInitializer) {}
30 ~Mutex() { pthread_mutex_destroy(&mutex_); }
38 Mutex();
39 ~Mutex();
51 MOJO_DISALLOW_COPY_AND_ASSIGN(Mutex);
56 explicit MutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
60 Mutex* const mutex_
    [all...]
  /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)
port_example.h 25 // A Mutex represents an exclusive lock.
26 class Mutex {
28 Mutex();
29 ~Mutex();
31 // Lock the mutex. Waits until other lockers have exited.
32 // Will deadlock if the mutex is already locked by this thread.
35 // Unlock the mutex.
36 // REQUIRES: This mutex was locked by this thread.
39 // Optionally crash if this thread does not hold this mutex.
47 explicit CondVar(Mutex* mu)
    [all...]
  /external/clang/test/Misc/
ast-dump-color.cpp 18 class __attribute__((lockable)) Mutex {
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{{$}}
66 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[BLUE]]CapabilityAttr[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:22[[RESET]]> capability "mutex"{{$}}
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)'[[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[[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[[CYAN]] Mutex[[RESET]] [[Green]]'void (class Mutex &&)'[[RESET]] inline{{ .*$}
    [all...]
  /external/libcxx/test/thread/thread.condition/thread.condition.condvarany/
wait.exception.pass.cpp 3 #include <mutex>
13 struct Mutex
16 Mutex() = default;
17 ~Mutex() = default;
18 Mutex(const Mutex&) = delete;
19 Mutex& operator=(const Mutex&) = delete;
30 Mutex mut;
wait_for.exception.pass.cpp 3 #include <mutex>
13 struct Mutex
16 Mutex() = default;
17 ~Mutex() = default;
18 Mutex(const Mutex&) = delete;
19 Mutex& operator=(const Mutex&) = delete;
30 Mutex mut;
  /external/chromium_org/third_party/leveldatabase/port/
port_chromium.cc 17 Mutex::Mutex() {
20 Mutex::~Mutex() {
23 void Mutex::Lock() {
27 void Mutex::Unlock() {
31 void Mutex::AssertHeld() {
35 CondVar::CondVar(Mutex* mu)
  /external/chromium_org/v8/src/base/platform/
mutex.cc 5 #include "src/base/platform/mutex.h"
14 static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) {
17 // Use an error checking mutex in debug mode.
23 result = pthread_mutex_init(mutex, &attr);
27 // Use a fast mutex (default attributes).
28 result = pthread_mutex_init(mutex, NULL);
35 static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) {
41 result = pthread_mutex_init(mutex, &attr);
49 static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) {
50 int result = pthread_mutex_destroy(mutex);
    [all...]
  /external/compiler-rt/lib/tsan/benchmarks/
vts_many_threads_bench.cc 31 class __attribute__((aligned(64))) Mutex {
33 Mutex() { pthread_mutex_init(&m_, NULL); }
34 ~Mutex() { pthread_mutex_destroy(&m_); }
43 Mutex mutexes[kNumMutexes];
  /external/lldb/source/Host/common/
Mutex.cpp 1 //===-- Mutex.cpp -----------------------------------------------*- C++ -*-===//
10 #include "lldb/Host/Mutex.h"
27 // Enable extra mutex error checking
59 // Make sure this isn't already in our initialized mutex set...
63 // Add the mutex to the initialized set
68 // Make sure this isn't already in our destroyed mutex set...
72 // Add the mutex to the destroyed set
76 // This function will return true if "m" is in the initialized mutex set
94 // This will create a scoped mutex locking object that doesn't have
95 // a mutex to lock. One will need to be provided using the Reset(
    [all...]
  /external/compiler-rt/lib/tsan/dd/
dd_rtl.h 24 struct Mutex {
42 typedef AddrHashMap<Mutex, 31051> MutexHashMap;
  /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/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_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...]

Completed in 915 milliseconds

1 2 3