• Home
  • Raw
  • Download

Lines Matching refs:mutex

45 extern int __pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
46 extern int __pthread_mutex_lock(pthread_mutex_t *mutex);
47 extern int __pthread_mutex_trylock(pthread_mutex_t *mutex);
48 extern int __pthread_mutex_unlock(pthread_mutex_t *mutex);
49 extern int __pthread_mutex_destroy(pthread_mutex_t *mutex);
57 static int (*ll_pthread_mutex_init)(pthread_mutex_t *mutex,
59 static int (*ll_pthread_mutex_lock)(pthread_mutex_t *mutex) = __pthread_mutex_lock;
60 static int (*ll_pthread_mutex_trylock)(pthread_mutex_t *mutex) = __pthread_mutex_trylock;
61 static int (*ll_pthread_mutex_unlock)(pthread_mutex_t *mutex) = __pthread_mutex_unlock;
62 static int (*ll_pthread_mutex_destroy)(pthread_mutex_t *mutex) = __pthread_mutex_destroy;
220 int pthread_mutex_init(pthread_mutex_t *mutex, in pthread_mutex_init() argument
237 r = ll_pthread_mutex_init(mutex, attr); in pthread_mutex_init()
244 __get_lock(mutex); in pthread_mutex_init()
249 int pthread_mutex_lock(pthread_mutex_t *mutex) in pthread_mutex_lock() argument
255 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, in pthread_mutex_lock()
271 r = ll_pthread_mutex_lock(mutex); in pthread_mutex_lock()
273 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_lock()
278 int pthread_mutex_trylock(pthread_mutex_t *mutex) in pthread_mutex_trylock() argument
284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_trylock()
285 r = ll_pthread_mutex_trylock(mutex); in pthread_mutex_trylock()
287 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_trylock()
292 int pthread_mutex_unlock(pthread_mutex_t *mutex) in pthread_mutex_unlock() argument
298 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); in pthread_mutex_unlock()
304 r = ll_pthread_mutex_unlock(mutex); in pthread_mutex_unlock()
306 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_mutex_unlock()
311 int pthread_mutex_destroy(pthread_mutex_t *mutex) in pthread_mutex_destroy() argument
320 debug_check_no_locks_freed(mutex, sizeof(*mutex)); in pthread_mutex_destroy()
321 __del_lock(__get_lock(mutex)); in pthread_mutex_destroy()
322 return ll_pthread_mutex_destroy(mutex); in pthread_mutex_destroy()