HomeSort by relevance Sort by last modified time
    Searched full:mutex (Results 1 - 25 of 1551) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/qemu/distrib/sdl-1.2.12/src/thread/win32/
SDL_sysmutex.c 24 /* Mutex functions using the Win32 API */
36 /* Create a mutex */
39 SDL_mutex *mutex; local
41 /* Allocate mutex memory */
42 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
43 if ( mutex ) {
44 /* Create the mutex, with initial value signaled */
45 mutex->id = CreateMutex(NULL, FALSE, NULL);
46 if ( ! mutex->id )
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/generic/
SDL_sysmutex.c 36 /* Create a mutex */
39 SDL_mutex *mutex; local
41 /* Allocate mutex memory */
42 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
43 if ( mutex ) {
44 /* Create the mutex semaphore, with initial value 1 */
45 mutex->sem = SDL_CreateSemaphore(1);
46 mutex->recursive = 0;
47 mutex->owner = 0
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/dc/
SDL_sysmutex.c 34 spinlock_t mutex; member in struct:SDL_mutex
37 /* Create a mutex */
40 SDL_mutex *mutex; local
42 /* Allocate mutex memory */
43 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
44 if ( mutex ) {
45 spinlock_init(&mutex->mutex);
46 mutex->recursive = 0
    [all...]
  /external/bluetooth/glib/tests/
errorcheck-mutex-test.c 10 locking_thread (gpointer mutex)
12 g_mutex_lock ((GMutex*)mutex);
20 GMutex* mutex = g_mutex_new (); local
21 g_mutex_lock (mutex);
22 g_mutex_lock (mutex);
28 GMutex* mutex = g_mutex_new (); local
29 g_mutex_lock (mutex);
30 g_mutex_trylock (mutex);
36 GMutex* mutex = g_mutex_new (); local
37 g_mutex_lock (mutex);
45 GMutex* mutex = g_mutex_new (); local
53 GMutex* mutex = g_mutex_new (); local
61 GMutex* mutex = g_mutex_new (); local
72 GMutex* mutex = g_mutex_new (); local
80 GMutex* mutex = g_mutex_new (); local
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/pth/
SDL_sysmutex.c 35 /* Create a mutex */
38 SDL_mutex *mutex; local
40 /* Allocate mutex memory */
41 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
42 if ( mutex ) {
43 /* Create the mutex, with initial value signaled */
44 if (!pth_mutex_init(&(mutex->mutexpth_p))) {
45 SDL_SetError("Couldn't create mutex");
46 SDL_free(mutex);
    [all...]
  /external/valgrind/main/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/qemu/distrib/sdl-1.2.12/src/thread/os2/
SDL_sysmutex.c 24 /* Mutex functions using the OS/2 API */
37 /* Create a mutex */
40 SDL_mutex *mutex; local
43 /* Allocate mutex memory */
44 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
45 if (mutex)
47 /* Create the mutex, with initial value signaled */
49 &(mutex->hmtxID), // Pointer to handle
54 SDL_SetError("Couldn't create mutex");
    [all...]
  /external/valgrind/main/memcheck/tests/darwin/
pth-supp.c 6 pthread_rwlock_t mutex; local
7 pthread_rwlock_init(&mutex, NULL);
  /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/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/valgrind/unittest/output_tests/
output_test1.cc 2 Mutex mu1; // This Mutex guards var.
3 Mutex mu2; // This Mutex is not related to var.
7 MutexLock lock(&mu1); // Correct Mutex.
12 MutexLock lock(&mu2); // Wrong Mutex.
  /external/qemu/distrib/sdl-1.2.12/src/thread/pthread/
SDL_sysmutex.c 43 SDL_mutex *mutex; local
47 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex));
48 if ( mutex ) {
57 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) {
59 SDL_free(mutex);
60 mutex = NULL;
65 return(mutex);
68 void SDL_DestroyMutex(SDL_mutex *mutex)
70 if ( mutex ) {
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/riscos/
SDL_sysmutex.c 44 SDL_mutex *mutex; local
48 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex));
49 if ( mutex ) {
56 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) {
58 SDL_free(mutex);
59 mutex = NULL;
64 return(mutex);
67 void SDL_DestroyMutex(SDL_mutex *mutex)
69 if ( mutex ) {
    [all...]
  /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);
  /external/qemu/distrib/sdl-1.2.12/src/thread/epoc/
SDL_sysmutex.cpp 31 /* Mutex functions using the Win32 API */
52 /* Create a mutex */
60 SDL_SetError("Couldn't create mutex");
62 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex; local
63 mutex->handle = rmutex.Handle();
64 return(mutex);
67 /* Free the mutex */
68 void SDL_DestroyMutex(SDL_mutex *mutex)
70 if ( mutex )
73 rmutex.SetHandle(mutex->handle)
    [all...]
  /external/icu4c/common/
umutex.h 35 * (empty) mutex implementation with the u_setMutexFunctions() functions.
80 * instantiate a Mutex object while doing so. The unnamed global mutex
88 * umtx_lock(NULL); // Lock the ICU global mutex
93 * an alternative C++ mutex API is defined in the file common/mutex.h
96 /* Lock a mutex.
97 * @param mutex The given mutex to be locked. Pass NULL to specify
98 * the global ICU mutex. Recursive locks are an erro
    [all...]
  /device/samsung/crespo/sec_mm/sec_omx/sec_osal/
SEC_OSAL_Mutex.c 38 pthread_mutex_t *mutex; local
40 mutex = (pthread_mutex_t *)SEC_OSAL_Malloc(sizeof(pthread_mutex_t));
41 if (!mutex)
44 if (pthread_mutex_init(mutex, NULL) != 0)
47 *mutexHandle = (OMX_HANDLETYPE)mutex;
53 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
55 if (mutex == NULL)
58 if (pthread_mutex_destroy(mutex) != 0)
61 SEC_OSAL_Free(mutex);
67 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle local
81 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
    [all...]
  /external/guava/src/com/google/common/collect/
Synchronized.java 41 * serializable if the backing collection and the mutex are serializable.
43 * <p>If a {@code null} is passed as the {@code mutex} parameter to any of this
45 * uses itself as the synchronization mutex.
59 protected final Object mutex; field in class:Synchronized.SynchronizedObject
61 public SynchronizedObject(Object delegate, @Nullable Object mutex) {
63 this.mutex = (mutex == null) ? this : mutex;
73 synchronized (mutex) {
84 synchronized (mutex) {
    [all...]
  /frameworks/base/libs/rs/
rsMutex.cpp 23 Mutex::Mutex() {
26 Mutex::~Mutex() {
30 bool Mutex::init() {
33 LOGE("Mutex::Mutex init failure");
39 bool Mutex::lock() {
43 LOGE("Mutex: error %i locking.", status);
49 bool Mutex::unlock()
    [all...]
  /frameworks/media/libvideoeditor/osal/src/
M4OSA_Mutex.c 18 * @brief Mutex for Android
19 * @note This file implements functions to manipulate mutex
33 /* Context for the mutex */
36 M4OSA_UInt32 coreID; /* mutex context identifiant */
37 pthread_mutex_t mutex; /* mutex */ member in struct:__anon15841
45 * @brief This method creates a new mutex.
49 * will be sent back to any OSAL core mutex functions to allow
50 * retrieving data associated to the opened mutex.
51 * @param pContext:(OUT) Context of the created mutex
    [all...]
  /external/srec/portable/include/
pmutex.h 47 typedef HANDLE MUTEX;
50 #define createMutex(mutex, locked) \
51 (*mutex = CreateMutex(NULL, locked, NULL)) == 0 ? ESR_MUTEX_CREATION_ERROR : ESR_SUCCESS
53 #define lockMutex(mutex) waitForHandle(mutex, INFINITE)
54 #define unlockMutex(mutex) (ReleaseMutex(*mutex) ? ESR_SUCCESS : ESR_FATAL_ERROR)
55 #define deleteMutex(mutex) ((void) CloseHandle(*mutex))
70 typedef pthread_mutex_t MUTEX;
    [all...]
  /bionic/libc/kernel/common/linux/
mutex.h 22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
36 #define mutex_destroy(mutex) do { } while (0)
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
  /development/ndk/platforms/android-3/include/linux/
mutex.h 22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
36 #define mutex_destroy(mutex) do { } while (0)
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)

Completed in 598 milliseconds

1 2 3 4 5 6 7 8 91011>>