/external/valgrind/none/tests/ |
pth_cvsimple.stdout.exp | 1 inc_counter(): count = 1, unlocking mutex 2 inc_counter(): count = 2, unlocking mutex 3 inc_counter(): count = 3, unlocking mutex 4 inc_counter(): count = 4, unlocking mutex 5 inc_counter(): count = 5, unlocking mutex 6 inc_counter(): count = 6, unlocking mutex 7 inc_counter(): count = 7, unlocking mutex 8 inc_counter(): count = 8, unlocking mutex 9 inc_counter(): count = 9, unlocking mutex 10 inc_counter(): count = 10, unlocking mutex [all...] |
/external/valgrind/helgrind/tests/ |
cond_timedwait_test.c | 5 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; local 12 pthread_mutex_lock(&mutex); 13 pthread_cond_timedwait(&cond, &mutex, &now); 14 pthread_mutex_unlock(&mutex); 16 pthread_mutex_destroy(&mutex);
|
pth_destroy_cond.c | 8 pthread_mutex_t mutex; variable 15 pthread_mutex_lock(&mutex); 19 pthread_mutex_unlock(&mutex); 25 pthread_mutex_init(&mutex, NULL); 28 pthread_mutex_lock(&mutex); 31 pthread_cond_wait(&cond, &mutex); 33 pthread_mutex_unlock(&mutex); 36 pthread_mutex_destroy(&mutex);
|
cond_timedwait_invalid.c | 10 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; local 21 assert(pthread_mutex_lock(&mutex)==0); 22 assert(pthread_cond_timedwait(&cond, &mutex, &abstime)==EINVAL); 23 assert(pthread_mutex_unlock(&mutex)==0);
|
/external/valgrind/drd/tests/ |
pth_process_shared_mutex.c | 2 * Test program that locks and unlocks a process-shared mutex. 15 pthread_mutex_t mutex; local 20 pthread_mutex_init(&mutex, &attr); 23 pthread_mutex_lock(&mutex); 24 pthread_mutex_unlock(&mutex); 25 pthread_mutex_destroy(&mutex);
|
/external/v8/test/unittests/base/platform/ |
mutex-unittest.cc | 5 #include "src/base/platform/mutex.h" 12 TEST(Mutex, LockGuardMutex) { 13 Mutex mutex; local 14 { LockGuard<Mutex> lock_guard(&mutex); } 15 { LockGuard<Mutex> lock_guard(&mutex); } 19 TEST(Mutex, LockGuardRecursiveMutex) { 29 TEST(Mutex, LockGuardLazyMutex) [all...] |
/external/valgrind/memcheck/tests/darwin/ |
pth-supp.c | 6 pthread_rwlock_t mutex; local 7 pthread_rwlock_init(&mutex, NULL);
|
/external/clang/test/Modules/Inputs/thread-safety/ |
a.h | 1 struct __attribute__((lockable)) mutex { struct
|
b.h | 4 mutex m;
|
/external/google-benchmark/cmake/ |
thread_safety_attributes.cpp | 2 #include "../src/mutex.h"
|
/external/jemalloc/include/jemalloc/internal/ |
mutex.h | 55 bool malloc_mutex_init(malloc_mutex_t *mutex); 56 void malloc_mutex_prefork(malloc_mutex_t *mutex); 57 void malloc_mutex_postfork_parent(malloc_mutex_t *mutex); 58 void malloc_mutex_postfork_child(malloc_mutex_t *mutex); 66 void malloc_mutex_lock(malloc_mutex_t *mutex); 67 void malloc_mutex_unlock(malloc_mutex_t *mutex); 72 malloc_mutex_lock(malloc_mutex_t *mutex) 78 AcquireSRWLockExclusive(&mutex->lock); 80 EnterCriticalSection(&mutex->lock); 83 OSSpinLockLock(&mutex->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" 30 ** Function: Mutex 37 Mutex::Mutex () 43 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 50 ** Function: ~Mutex 57 Mutex::~Mutex () [all...] |
/external/guava/guava/src/com/google/common/collect/ |
Synchronized.java | 48 * serializable if the backing collection and the mutex are serializable. 50 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this 52 * uses itself as the synchronization mutex. 65 final Object mutex; field in class:Synchronized.SynchronizedObject 67 SynchronizedObject(Object delegate, @Nullable Object mutex) { 69 this.mutex = (mutex == null) ? this : mutex; 79 synchronized (mutex) { 91 synchronized (mutex) { [all...] |
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
Mutex.cpp | 21 * Encapsulate a mutex for thread synchronization. 27 #include "Mutex.h" 33 ** Function: Mutex 40 Mutex::Mutex () 46 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 53 ** Function: ~Mutex 60 Mutex::~Mutex () [all...] |
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...] |
/ndk/sources/cxx-stl/llvm-libc++/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/fio/ |
mutex.c | 14 #include "mutex.h" 21 void __fio_mutex_remove(struct fio_mutex *mutex) 23 assert(mutex->magic == FIO_MUTEX_MAGIC); 24 pthread_cond_destroy(&mutex->cond); 27 void fio_mutex_remove(struct fio_mutex *mutex) 29 __fio_mutex_remove(mutex); 30 munmap((void *) mutex, sizeof(*mutex)); 33 int __fio_mutex_init(struct fio_mutex *mutex, int value) 39 mutex->value = value 78 struct fio_mutex *mutex = NULL; local [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
Synchronized.java | 42 * serializable if the backing collection and the mutex are serializable. 44 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this 46 * uses itself as the synchronization mutex. 59 final Object mutex; field in class:Synchronized.SynchronizedObject 61 SynchronizedObject(Object delegate, @Nullable Object mutex) { 63 this.mutex = (mutex == null) ? this : mutex; 73 synchronized (mutex) { 85 Collection<E> collection, @Nullable Object mutex) { [all...] |
/external/jemalloc/src/ |
mutex.c | 67 JEMALLOC_EXPORT int _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex, 72 malloc_mutex_init(malloc_mutex_t *mutex) 77 InitializeSRWLock(&mutex->lock); 79 if (!InitializeCriticalSectionAndSpinCount(&mutex->lock, 84 mutex->lock = 0; 87 mutex->postponed_next = postponed_mutexes; 88 postponed_mutexes = mutex; 90 if (_pthread_mutex_init_calloc_cb(&mutex->lock, 100 if (pthread_mutex_init(&mutex->lock, &attr) != 0) { 110 malloc_mutex_prefork(malloc_mutex_t *mutex) [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...] |
/hardware/qcom/camera/msmcobalt/QCamera2/HAL/ |
QCameraParametersIntf.cpp | 33 #include <utils/Mutex.h> 56 Mutex::Autolock lock(mLock); 67 Mutex::Autolock lock(mLock); 81 Mutex::Autolock lock(mLock); 88 Mutex::Autolock lock(mLock); 95 Mutex::Autolock lock(mLock); 102 Mutex::Autolock lock(mLock); 109 Mutex::Autolock lock(mLock); 116 Mutex::Autolock lock(mLock); 124 Mutex::Autolock lock(mLock) [all...] |
/packages/apps/TV/usbtuner/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...] |
/hardware/qcom/camera/QCamera2/HAL/ |
QCameraParametersIntf.cpp | 33 #include <utils/Mutex.h> 56 Mutex::Autolock lock(mLock); 67 Mutex::Autolock lock(mLock); 81 Mutex::Autolock lock(mLock); 88 Mutex::Autolock lock(mLock); 95 Mutex::Autolock lock(mLock); 102 Mutex::Autolock lock(mLock); 109 Mutex::Autolock lock(mLock); 116 Mutex::Autolock lock(mLock); 124 Mutex::Autolock lock(mLock) [all...] |