Searched defs:mutex (Results 1 - 6 of 6) sorted by relevance
/bionic/libc/kernel/common/linux/ |
H A D | mutex.h | 27 struct mutex { struct 40 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 41 #define mutex_destroy(mutex) do { } while (0) 45 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/bionic/libc/kernel/common/linux/mtd/ |
H A D | flashchip.h | 61 spinlock_t *mutex; member in struct:flchip
|
/bionic/libc/bionic/ |
H A D | pthread-timers.c | 105 pthread_mutex_t mutex; /* lock */ member in struct:thr_timer 186 pthread_mutex_lock(&timer->mutex); 189 pthread_mutex_unlock(&timer->mutex); 285 pthread_mutex_lock(&t->mutex); 291 pthread_mutex_unlock(&t->mutex); 356 pthread_mutex_init( &timer->mutex, NULL ); 554 pthread_cond_wait( &timer->cond, &timer->mutex ); 573 &timer->cond, &timer->mutex, &diff);
|
H A D | pthread_debug.c | 390 // the actual mutex 391 pthread_mutex_t* mutex; member in struct:MutexInfo 419 static void initMutexInfo(MutexInfo* object, pthread_mutex_t* mutex) { argument 425 object->mutex = mutex; 444 static MutexInfo* get_mutex_info(pthread_mutex_t *mutex); 450 extern int pthread_mutex_lock_impl(pthread_mutex_t *mutex); 451 extern int pthread_mutex_unlock_impl(pthread_mutex_t *mutex); 453 static int pthread_mutex_lock_unchecked(pthread_mutex_t *mutex) { argument 454 return pthread_mutex_lock_impl(mutex); 457 pthread_mutex_unlock_unchecked(pthread_mutex_t *mutex) argument 780 get_mutex_info(pthread_mutex_t *mutex) argument 876 pthread_debug_mutex_lock_check(pthread_mutex_t *mutex) argument 894 pthread_debug_mutex_unlock_check(pthread_mutex_t *mutex) argument [all...] |
H A D | pthread.c | 54 extern void pthread_debug_mutex_lock_check(pthread_mutex_t *mutex); 55 extern void pthread_debug_mutex_unlock_check(pthread_mutex_t *mutex); 344 // Create a mutex for the thread in TLS_SLOT_SELF to wait on once it starts so we can keep 750 /* a mutex is implemented as a 32-bit integer holding the following fields 754 * 15-14 type mutex type 798 /* return true iff the mutex if locked with no waiters */ 801 /* return true iff the mutex if locked with maybe waiters */ 827 * This flag is set to indicate that the mutex is shared among processes. 896 * These are used to form or modify the bit pattern of a given mutex value 901 /* a mutex attribut 989 pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) argument 1037 _normal_lock(pthread_mutex_t* mutex, int shared) argument 1077 _normal_unlock(pthread_mutex_t* mutex, int shared) argument 1141 _recursive_increment(pthread_mutex_t* mutex, int mvalue, int mtype) argument 1176 pthread_mutex_lock_impl(pthread_mutex_t *mutex) argument 1256 pthread_mutex_lock(pthread_mutex_t *mutex) argument 1270 pthread_mutex_unlock_impl(pthread_mutex_t *mutex) argument 1326 pthread_mutex_unlock(pthread_mutex_t *mutex) argument 1337 pthread_mutex_trylock_impl(pthread_mutex_t *mutex) argument 1381 pthread_mutex_trylock(pthread_mutex_t *mutex) argument 1429 pthread_mutex_lock_timeout_np_impl(pthread_mutex_t *mutex, unsigned msecs) argument 1543 pthread_mutex_lock_timeout_np(pthread_mutex_t *mutex, unsigned msecs) argument 1556 pthread_mutex_destroy(pthread_mutex_t *mutex) argument 1699 pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) argument 1704 __pthread_cond_timedwait_relative(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *reltime) argument 1719 __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime, clockid_t clock) argument 1738 pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1747 pthread_cond_timedwait_monotonic(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1754 pthread_cond_timedwait_monotonic_np(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1761 pthread_cond_timedwait_relative_np(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *reltime) argument 1768 pthread_cond_timeout_np(pthread_cond_t *cond, pthread_mutex_t * mutex, unsigned msecs) argument [all...] |
H A D | dlmalloc.c | 136 etc is surrounded with either a pthread mutex or a win32 255 pthread or WIN32 mutex lock/unlock. (If set true, this can be 2091 If USE_LOCKS is defined, the "mutex" lock is acquired and released 2124 MLOCK_T mutex; /* locate lock among fields that rarely change */ member in struct:malloc_state 2249 #define PREACTION(M) ((GLOBALLY_INITIALIZE() || use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0) 2250 #define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); } 2657 INITIAL_LOCK(&gm->mutex); 4662 INITIAL_LOCK(&m->mutex);
|
Completed in 405 milliseconds