Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 15 of 15) sorted by relevance

/bionic/libc/kernel/common/linux/
Dmutex.h22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mu… argument
36 #define mutex_destroy(mutex) do { } while (0) argument
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
Dmutex-debug.h20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mu… argument
Delevator.h89 struct mutex sysfs_lock;
Dblkdev.h358 struct mutex sysfs_lock;
/bionic/libc/bionic/
Dpthread.c847 int pthread_mutex_init(pthread_mutex_t *mutex, in pthread_mutex_init() argument
852 if (mutex == NULL) in pthread_mutex_init()
856 mutex->value = MUTEX_TYPE_NORMAL; in pthread_mutex_init()
877 mutex->value = value; in pthread_mutex_init()
881 int pthread_mutex_destroy(pthread_mutex_t *mutex) in pthread_mutex_destroy() argument
887 ret = pthread_mutex_trylock(mutex); in pthread_mutex_destroy()
891 mutex->value = 0xdead10cc; in pthread_mutex_destroy()
909 _normal_lock(pthread_mutex_t* mutex) in _normal_lock() argument
912 int shared = mutex->value & MUTEX_SHARED_MASK; in _normal_lock()
919 if (__atomic_cmpxchg(shared|0, shared|1, &mutex->value ) != 0) { in _normal_lock()
[all …]
Dpthread-timers.c105 pthread_mutex_t mutex; /* lock */ member
186 pthread_mutex_lock(&timer->mutex); in thr_timer_table_start_stop()
189 pthread_mutex_unlock(&timer->mutex); in thr_timer_table_start_stop()
285 pthread_mutex_lock(&t->mutex); in thr_timer_lock()
291 pthread_mutex_unlock(&t->mutex); in thr_timer_unlock()
356 pthread_mutex_init( &timer->mutex, NULL ); in timer_create()
554 pthread_cond_wait( &timer->cond, &timer->mutex ); in timer_thread_start()
573 &timer->cond, &timer->mutex, &diff); in timer_thread_start()
Ddlmalloc.c2108 MLOCK_T mutex; /* locate lock among fields that rarely change */ member
2233 #define PREACTION(M) ((GLOBALLY_INITIALIZE() || use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0)
2234 #define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); }
2576 INITIAL_LOCK(&gm->mutex); in init_mparams()
4567 INITIAL_LOCK(&m->mutex); in init_user_mstate()
/bionic/libc/include/
Dpthread.h160 int pthread_mutex_init(pthread_mutex_t *mutex,
162 int pthread_mutex_destroy(pthread_mutex_t *mutex);
163 int pthread_mutex_lock(pthread_mutex_t *mutex);
164 int pthread_mutex_unlock(pthread_mutex_t *mutex);
165 int pthread_mutex_trylock(pthread_mutex_t *mutex);
166 int pthread_mutex_timedlock(pthread_mutex_t *mutex, struct timespec* ts);
178 int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
180 pthread_mutex_t * mutex,
188 pthread_mutex_t *mutex,
195 pthread_mutex_t *mutex,
[all …]
/bionic/libc/kernel/arch-x86/asm/
Dmmu.h21 struct mutex lock;
/bionic/libc/stdio/
Dflockfile.c57 pthread_mutex_t mutex; member
138 pthread_mutex_init( &lock->mutex, &attr ); in flockfile()
149 pthread_mutex_lock(&lock->mutex); in flockfile()
169 if (lock != NULL && !pthread_mutex_trylock(&lock->mutex)) { in ftrylockfile()
186 pthread_mutex_unlock(&lock->mutex); in funlockfile()
/bionic/libc/kernel/common/linux/mtd/
Dflashchip.h52 spinlock_t *mutex; member
Dblktrans.h27 struct mutex lock;
/bionic/libc/kernel/common/linux/raid/
Dmd_k.h135 struct mutex reconfig_mutex;
/bionic/libc/docs/
DCHANGES.TXT7 checking to pthread_mutex_destroy() (e.g. a locked mutex will return
DOVERVIEW.TXT364 then the C library will keep the corresponding pthread_once_t mutex