HomeSort by relevance Sort by last modified time
    Searched refs:mutex (Results 101 - 125 of 1334) sorted by null

1 2 3 45 6 7 8 91011>>

  /prebuilts/ndk/9/platforms/android-9/arch-x86/usr/include/asm/
mmu.h 22 #include <linux/mutex.h>
27 struct mutex lock;
  /external/kernel-headers/original/linux/
mutex-debug.h 14 #define mutex_init(mutex) \
18 __mutex_init((mutex), #mutex, &__key); \
21 extern void FASTCALL(mutex_destroy(struct mutex *lock));
mutex.h 23 * - only one task can hold the mutex at a time
24 * - only the owner can unlock the mutex
27 * - a mutex object must be initialized via the API
28 * - a mutex object must not be initialized via memset or copying
29 * - task may not exit with mutex held
35 * enabled. Furthermore, besides enforcing the above rules, the mutex
47 struct mutex { struct
63 * This is the control structure for tasks blocked on mutex,
70 struct mutex *lock;
76 # include <linux/mutex-debug.h
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/thread/symbian/
SDL_sysmutex.cpp 35 /* Mutex functions using the Win32 API */
72 /* Create a mutex */
80 SDL_SetError("Couldn't create mutex");
82 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex; local
83 mutex->handle = rmutex.Handle();
84 EpocSdlEnv::AppendCleanupItem(TSdlCleanupItem(DeleteMutex, mutex));
85 return(mutex);
88 /* Free the mutex */
89 void SDL_DestroyMutex(SDL_mutex *mutex)
91 if ( mutex )
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex_adopt_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 std::mutex m;
23 std::unique_lock<std::mutex> lk(m, std::adopt_lock);
24 assert(lk.mutex() == &m);
mutex_defer_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 std::mutex m;
22 std::unique_lock<std::mutex> lk(m, std::defer_lock);
23 assert(lk.mutex() == &m);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/
op_bool.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 std::mutex m;
23 std::unique_lock<std::mutex> lk0;
25 std::unique_lock<std::mutex> lk1(m);
owns_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 std::mutex m;
23 std::unique_lock<std::mutex> lk0;
25 std::unique_lock<std::mutex> lk1(m);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/
version.pass.cpp 10 // <mutex>
12 #include <mutex>
  /external/bluetooth/bluedroid/btif/include/
btif_sock_util.h 37 static inline void init_slot_lock( pthread_mutex_t* mutex)
42 pthread_mutex_init(mutex, &attr);
45 static inline void lock_slot(pthread_mutex_t* mutex)
47 if(mutex->value)
48 pthread_mutex_lock(mutex);
49 else ALOGE("mutex: %p is not initialized", mutex);
52 static inline void unlock_slot(pthread_mutex_t* mutex)
54 if(mutex->value)
55 pthread_mutex_unlock(mutex);
    [all...]
  /external/valgrind/main/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/chromium_org/v8/test/cctest/
test-lock.cc 43 Mutex* mutex = OS::CreateMutex(); local
44 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token
45 CHECK_EQ(0, mutex->Unlock()); // can unlock with the right token
46 delete mutex;
51 Mutex* mutex = OS::CreateMutex(); local
52 CHECK_EQ(0, mutex->Lock());
53 CHECK_EQ(0, mutex->Unlock());
54 delete mutex;
59 Mutex* mutex = OS::CreateMutex(); local
    [all...]
  /external/v8/test/cctest/
test-lock.cc 18 Mutex* mutex = OS::CreateMutex(); local
19 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token
20 CHECK_EQ(0, mutex->Unlock()); // can unlock with the right token
21 delete mutex;
26 Mutex* mutex = OS::CreateMutex(); local
27 CHECK_EQ(0, mutex->Lock());
28 CHECK_EQ(0, mutex->Unlock());
29 delete mutex;
34 Mutex* mutex = OS::CreateMutex(); local
    [all...]
  /external/guava/guava/src/com/google/common/collect/
Synchronized.java 43 * serializable if the backing collection and the mutex are serializable.
45 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this
47 * uses itself as the synchronization mutex.
60 final Object mutex; field in class:Synchronized.SynchronizedObject
62 SynchronizedObject(Object delegate, @Nullable Object mutex) {
64 this.mutex = (mutex == null) ? this : mutex;
74 synchronized (mutex) {
86 synchronized (mutex) {
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
Synchronized.java 40 * serializable if the backing collection and the mutex are serializable.
42 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this
44 * uses itself as the synchronization mutex.
57 final Object mutex; field in class:Synchronized.SynchronizedObject
59 SynchronizedObject(Object delegate, @Nullable Object mutex) {
61 this.mutex = (mutex == null) ? this : mutex;
71 synchronized (mutex) {
83 Collection<E> collection, @Nullable Object mutex) {
    [all...]
  /device/asus/flo/camera/QCamera2/stack/common/
cam_semaphore.h 37 /* Implement semaphore with mutex and conditional variable.
44 pthread_mutex_t mutex; member in struct:__anon1635
50 pthread_mutex_init(&(s->mutex), NULL);
57 pthread_mutex_lock(&(s->mutex));
60 pthread_mutex_unlock(&(s->mutex));
66 pthread_mutex_lock(&(s->mutex));
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex));
70 pthread_mutex_unlock(&(s->mutex));
76 pthread_mutex_destroy(&(s->mutex));
  /external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
pthread_mutex_destroy.c 5 * This translation unit implements mutual exclusion (mutex) primitives.
42 pthread_mutex_destroy (pthread_mutex_t * mutex)
54 if (*mutex < PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
56 mx = *mutex;
61 * If trylock succeeded and the mutex is not recursively locked it
70 * The mutex isn't held by another thread but we could still
71 * be too late invalidating the mutex below since another thread
73 * *mutex != NULL.
75 *mutex = NULL;
87 *mutex = mx
    [all...]
  /external/kernel-headers/original/asm-x86/
mmu.h 5 #include <linux/mutex.h>
19 struct mutex lock;
  /external/libnfc-nci/halimpl/bcm2079x/adaptation/
CondVar.h 27 #include "Mutex.h"
66 void wait (Mutex& mutex);
79 bool wait (Mutex& mutex, long millisec);
  /external/qemu/
qemu-thread.h 22 void qemu_mutex_init(QemuMutex *mutex);
23 void qemu_mutex_destroy(QemuMutex *mutex);
24 void qemu_mutex_lock(QemuMutex *mutex);
25 int qemu_mutex_trylock(QemuMutex *mutex);
26 int qemu_mutex_timedlock(QemuMutex *mutex, uint64_t msecs);
27 void qemu_mutex_unlock(QemuMutex *mutex);
33 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex);
34 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
  /hardware/qcom/camera/QCamera2/stack/common/
cam_semaphore.h 37 /* Implement semaphore with mutex and conditional variable.
44 pthread_mutex_t mutex; member in struct:__anon33062
50 pthread_mutex_init(&(s->mutex), NULL);
57 pthread_mutex_lock(&(s->mutex));
60 pthread_mutex_unlock(&(s->mutex));
66 pthread_mutex_lock(&(s->mutex));
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex));
70 pthread_mutex_unlock(&(s->mutex));
76 pthread_mutex_destroy(&(s->mutex));
  /packages/apps/Nfc/nci/jni/
CondVar.h 23 #include "Mutex.h"
62 void wait (Mutex& mutex);
75 bool wait (Mutex& mutex, long millisec);
  /external/llvm/lib/Support/
Mutex.cpp 1 //===- Mutex.cpp - Mutual Exclusion Lock ------------------------*- C++ -*-===//
10 // This file implements the llvm::sys::Mutex class.
15 #include "llvm/Support/Mutex.h"
43 // Construct a Mutex using pthread calls
48 pthread_mutex_t* mutex =
52 // Initialize the mutex attributes
56 // Initialize the mutex as a recursive mutex, if requested, or normal
64 // Make it a process local mutex
69 // Initialize the mutex
    [all...]
  /external/valgrind/main/helgrind/tests/
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);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/
assign.fail.cpp 10 // <mutex>
16 #include <mutex>

Completed in 452 milliseconds

1 2 3 45 6 7 8 91011>>