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

1 2 3 4 5 6 7 8 91011>>

  /external/clearsilver/man/man3/
mCreate.3 14 mCreate - initialize a mutex.
20 NEOERR *mCreate(pthread_mutex_t *mutex);
25 mutex - mutex to initialize.
28 Initializes the mutex <mutex>.
30 MT-Level: Safe for unique <mutex>.
mDestroy.3 14 mDestroy - destroy a mutex.
20 void mDestroy(pthread_mutex_t *mutex);
25 mutex - mutex to destroy.
28 Destroys the mutex <mutex> that was initialized by mCreate().
30 MT-Level: Safe for unique <mutex>.
mLock.3 14 mLock - lock a mutex.
20 NEOERR *mLock(pthread_mutex_t *mutex);
25 mutex - mutex to lock.
28 Locks the mutex <mutex>. This call blocks until the mutex
mUnlock.3 14 mUnlock - unlock a mutex.
20 NEOERR *mUnlock(pthread_mutex_t *mutex);
25 mutex - mutex to unlock.
28 Unlocks the mutex <mutex>.
cWait.3 20 NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex);
27 mutex - locked mutex to protect <cond>.
31 The mutex <mutex> must be locked by the thread.
  /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/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/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/qemu/
qemu-thread.h 22 void qemu_mutex_init(QemuMutex *mutex);
23 void qemu_mutex_lock(QemuMutex *mutex);
24 int qemu_mutex_trylock(QemuMutex *mutex);
25 int qemu_mutex_timedlock(QemuMutex *mutex, uint64_t msecs);
26 void qemu_mutex_unlock(QemuMutex *mutex);
31 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex);
32 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
  /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/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/
mutex.cpp 12 /* If UCONFIG_NO_SERVICE, then there is no invocation of Mutex elsewhere in
14 #include "mutex.h"
15 static Mutex *aMutex = 0;
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...]
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.
49 // Mutex mutex(&myMutex); // or no args for the global lock
51 // // When 'mutex' goes out of scope and gets destroyed here, the lock is released
54 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function
55 // returning a Mutex. This is a common mistake which silently slips through th
    [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...]
  /dalvik/libcore/archive/src/main/native/
hymutex.h 24 typedef pthread_mutex_t MUTEX;
27 #define MUTEX_INIT(mutex) (pthread_mutex_init(&(mutex), NULL) == 0)
30 #define MUTEX_DESTROY(mutex) pthread_mutex_destroy(&(mutex))
33 #define MUTEX_ENTER(mutex) pthread_mutex_lock(&(mutex))
39 #define MUTEX_TRY_ENTER(mutex) pthread_mutex_trylock(&(mutex))
42 #define MUTEX_EXIT(mutex) pthread_mutex_unlock(&(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)

Completed in 268 milliseconds

1 2 3 4 5 6 7 8 91011>>