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 | 106 pthread_mutex_t mutex; /* lock */ member in struct:thr_timer 185 pthread_mutex_lock(&timer->mutex); 188 pthread_mutex_unlock(&timer->mutex); 276 pthread_mutex_lock(&t->mutex); 282 pthread_mutex_unlock(&t->mutex); 338 pthread_mutex_init(&timer->mutex, NULL); 535 pthread_cond_wait(&timer->cond, &timer->mutex); 550 int ret = __pthread_cond_timedwait_relative(&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 | 55 extern void pthread_debug_mutex_lock_check(pthread_mutex_t *mutex); 56 extern void pthread_debug_mutex_unlock_check(pthread_mutex_t *mutex); 334 // Create a mutex for the thread in TLS_SLOT_SELF to wait on once it starts so we can keep 754 /* a mutex is implemented as a 32-bit integer holding the following fields 758 * 15-14 type mutex type 802 /* return true iff the mutex if locked with no waiters */ 805 /* return true iff the mutex if locked with maybe waiters */ 831 * This flag is set to indicate that the mutex is shared among processes. 900 * These are used to form or modify the bit pattern of a given mutex value 905 /* a mutex attribut 993 pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) argument 1041 _normal_lock(pthread_mutex_t* mutex, int shared) argument 1081 _normal_unlock(pthread_mutex_t* mutex, int shared) argument 1145 _recursive_increment(pthread_mutex_t* mutex, int mvalue, int mtype) argument 1180 pthread_mutex_lock_impl(pthread_mutex_t *mutex) argument 1260 pthread_mutex_lock(pthread_mutex_t *mutex) argument 1274 pthread_mutex_unlock_impl(pthread_mutex_t *mutex) argument 1330 pthread_mutex_unlock(pthread_mutex_t *mutex) argument 1341 pthread_mutex_trylock_impl(pthread_mutex_t *mutex) argument 1385 pthread_mutex_trylock(pthread_mutex_t *mutex) argument 1433 pthread_mutex_lock_timeout_np_impl(pthread_mutex_t *mutex, unsigned msecs) argument 1547 pthread_mutex_lock_timeout_np(pthread_mutex_t *mutex, unsigned msecs) argument 1560 pthread_mutex_destroy(pthread_mutex_t *mutex) argument 1703 pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) argument 1708 __pthread_cond_timedwait_relative(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *reltime) argument 1723 __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime, clockid_t clock) argument 1742 pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1751 pthread_cond_timedwait_monotonic(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1758 pthread_cond_timedwait_monotonic_np(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 1765 pthread_cond_timedwait_relative_np(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *reltime) argument 1772 pthread_cond_timeout_np(pthread_cond_t *cond, pthread_mutex_t * mutex, unsigned msecs) argument [all...] |
/bionic/libc/upstream-dlmalloc/ |
H A D | malloc.c | 115 pthread mutex, win32 critical section, or a spin-lock if if 264 pthread or WIN32 mutex lock/unlock. (If set true, this can be 2561 If USE_LOCKS is defined, the "mutex" lock is acquired and released 2597 MLOCK_T mutex; /* locate lock among fields that rarely change */ member in struct:malloc_state 2743 #define PREACTION(M) ((use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0) 2744 #define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); } 3095 static void pre_fork(void) { ACQUIRE_LOCK(&(gm)->mutex); } 3096 static void post_fork_parent(void) { RELEASE_LOCK(&(gm)->mutex); } 3097 static void post_fork_child(void) { INITIAL_LOCK(&(gm)->mutex); } 3160 (void)INITIAL_LOCK(&gm->mutex); [all...] |
Completed in 100 milliseconds