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

1 2 3 4 5 6

  /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 12 // File: mutex.h
14 // Lightweight C++ wrapper for umtx_ C mutex functions
33 // should instantiate a Mutex object while doing so. You should make your own
34 // private mutex where possible.
43 // Mutex mutex(&myMutex); // or no args for the global lock
45 // // When 'mutex' goes out of scope and gets destroyed here, the lock is released
48 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function
49 // returning a Mutex. This is a common mistake which silently slips through th
    [all...]
  /system/chre/platform/include/chre/platform/
mutex.h 26 * Provides an implementation of a Mutex. The public API meets the BasicLockable
29 * mutex implementation.
31 class Mutex : public MutexBase,
35 * Allows the platform to do any mutex initialization at construction time.
37 Mutex();
40 * Allows the platform to do any mutex deinitialization at destruction time.
42 ~Mutex();
45 * Locks the mutex, or blocks if it is held by another thread. Illegal to call
51 * Attempts to lock the mutex. If it is already held by some other thread,
55 * @return true if the mutex was acquired, false otherwis
    [all...]
  /frameworks/rs/
rsMutex.cpp 22 Mutex::Mutex() {
25 Mutex::~Mutex() {
29 bool Mutex::init() {
32 ALOGE("Mutex::Mutex init failure");
38 bool Mutex::lock() {
42 ALOGE("Mutex: error %i locking.", status);
48 bool Mutex::unlock()
    [all...]
rsMutex.h 26 class Mutex {
28 Mutex();
29 ~Mutex();
  /packages/apps/Nfc/nci/jni/
Mutex.cpp 18 * Encapsulate a mutex for thread synchronization.
21 #include "Mutex.h"
34 ** Function: Mutex
41 Mutex::Mutex() {
45 LOG(ERROR) << StringPrintf("Mutex::Mutex: fail init; error=0x%X", res);
51 ** Function: ~Mutex
58 Mutex::~Mutex() {
    [all...]
Mutex.h 18 * Encapsulate a mutex for thread synchronization.
24 class Mutex {
28 ** Function: Mutex
35 Mutex();
39 ** Function: ~Mutex
46 ~Mutex();
52 ** Description: Block the thread and try lock the mutex.
63 ** Description: Unlock a mutex to unblock a thread.
74 ** Description: Try to lock the mutex.
76 ** Returns: True if the mutex is locked
    [all...]
  /packages/apps/TV/jni/
mutex.h 24 class Mutex {
26 Mutex() {
35 ~Mutex() {
39 // A simple class that locks a given mutex on construction
43 Autolock(Mutex &mutex) : lock(&mutex) {
50 Mutex *lock;
57 Mutex(const Mutex&)
    [all...]
  /system/chre/platform/linux/include/chre/target_platform/
mutex_base_impl.h 20 #include "chre/platform/mutex.h"
24 inline Mutex::Mutex() {}
26 inline Mutex::~Mutex() {}
28 inline void Mutex::lock() {
32 inline bool Mutex::try_lock() {
36 inline void Mutex::unlock() {
  /system/chre/platform/slpi/include/chre/target_platform/
mutex_base_impl.h 20 #include "chre/platform/mutex.h"
24 inline Mutex::Mutex() {
28 inline Mutex::~Mutex() {
32 inline void Mutex::lock() {
36 inline bool Mutex::try_lock() {
40 inline void Mutex::unlock() {
  /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);
mutex_annotations.cc 4 // Test that a linker-initialized mutex can be created/destroyed while in use.
8 class Mutex {
34 Mutex m;
  /hardware/broadcom/wlan/bcmdhd/wifi_hal/
sync.h 24 class Mutex
29 Mutex() {
32 ~Mutex() {
  /hardware/qcom/wlan/qcwcn/wifi_hal/
sync.h 24 class Mutex
29 Mutex() {
32 ~Mutex() {
  /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) noexcept'[[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 constexpr[[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 constexpr[[CYAN]] Mutex[[RESET]] [[Green]]'void (class Mutex &&)'[[RESET]] inline{{ .*$}
    [all...]
  /external/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...]
  /device/google/cuttlefish_common/common/libs/threads/
cuttlefish_thread.h 21 // Mutex is similar to std::mutex
36 class Mutex {
40 Mutex() {
44 ~Mutex() {
67 Mutex(const Mutex&);
68 Mutex& operator= (const Mutex&);
73 explicit ConditionVariable(Mutex* mutex) : mutex_(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/libxcam/xcore/
xcam_mutex.h 30 class Mutex {
33 XCAM_DEAD_COPY (Mutex);
36 Mutex () {
39 XCAM_LOG_WARNING ("Mutex init failed %d: %s", error_num, strerror(error_num));
42 virtual ~Mutex () {
45 XCAM_LOG_WARNING ("Mutex destroy failed %d: %s", error_num, strerror(error_num));
52 XCAM_LOG_WARNING ("Mutex lock failed %d: %s", error_num, strerror(error_num));
58 XCAM_LOG_WARNING ("Mutex unlock failed %d: %s", error_num, strerror(error_num));
78 int wait (Mutex &mutex) {
    [all...]
  /external/mesa3d/src/egl/main/
eglglobals.h 52 mtx_t *Mutex;
  /prebuilts/go/darwin-x86/src/sync/
mutex.go 21 // A Mutex is a mutual exclusion lock.
22 // The zero value for a Mutex is an unlocked mutex.
24 // A Mutex must not be copied after first use.
25 type Mutex struct {
37 mutexLocked = 1 << iota // mutex is locked
42 // Mutex fairness.
44 // Mutex can be in 2 modes of operations: normal and starvation.
46 // does not own the mutex and competes with new arriving goroutines over
50 // of the wait queue. If a waiter fails to acquire the mutex for more than 1ms
    [all...]
  /prebuilts/go/linux-x86/src/sync/
mutex.go 21 // A Mutex is a mutual exclusion lock.
22 // The zero value for a Mutex is an unlocked mutex.
24 // A Mutex must not be copied after first use.
25 type Mutex struct {
37 mutexLocked = 1 << iota // mutex is locked
42 // Mutex fairness.
44 // Mutex can be in 2 modes of operations: normal and starvation.
46 // does not own the mutex and competes with new arriving goroutines over
50 // of the wait queue. If a waiter fails to acquire the mutex for more than 1ms
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_mutex.cc 20 // Simple reader-writer spin-mutex. Optimized for not-so-contended case.
25 // then Report mutex can be locked while under Threads mutex.
55 // If [i][j]==true, then one can lock mutex j while under mutex i.
123 Printf("Mutex %d participates in a cycle\n", i);
211 Mutex::Mutex(MutexType type, StatType stat_type) {
223 Mutex::~Mutex() {
    [all...]
  /external/gflags/src/
mutex.h 32 // A simple mutex wrapper, supporting locks and read-write locks.
40 // problems when we have multiple versions of Mutex in each shared object.
64 // function that tries to acquire this mutex -- but that all happens
65 // before this mutex's constructor has run. (This can happen even if
66 // the mutex and the function that uses the mutex are in the same .cc
67 // file.) Basically, because Mutex does non-trivial work in its
71 // The solution used here is to pair the actual mutex primitive with a
72 // bool that is set to true when the mutex is dynamically initialized.
73 // (Before that it's false.) Then we modify all mutex routines t
    [all...]

Completed in 449 milliseconds

1 2 3 4 5 6