• Home
  • Raw
  • Download

Lines Matching refs:rwlock

67 extern int __pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr);
68 extern int __pthread_rwlock_destroy(pthread_rwlock_t *rwlock);
69 extern int __pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);
70 extern int __pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);
71 extern int __pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);
72 extern int __pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);
73 extern int __pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
84 static int (*ll_pthread_rwlock_init)(pthread_rwlock_t *rwlock,
86 static int (*ll_pthread_rwlock_destroy)(pthread_rwlock_t *rwlock) = __pthread_rwlock_destroy;
87 static int (*ll_pthread_rwlock_rdlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_rdlock;
88 static int (*ll_pthread_rwlock_tryrdlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_tryrdlock;
89 static int (*ll_pthread_rwlock_trywrlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_trywrlock;
90 static int (*ll_pthread_rwlock_wrlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_wrlock;
91 static int (*ll_pthread_rwlock_unlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_unlock;
326 int pthread_rwlock_init(pthread_rwlock_t *rwlock, in pthread_rwlock_init() argument
333 r = ll_pthread_rwlock_init(rwlock, attr); in pthread_rwlock_init()
335 __get_lock(rwlock); in pthread_rwlock_init()
340 int pthread_rwlock_destroy(pthread_rwlock_t *rwlock) in pthread_rwlock_destroy() argument
344 debug_check_no_locks_freed(rwlock, sizeof(*rwlock)); in pthread_rwlock_destroy()
345 __del_lock(__get_lock(rwlock)); in pthread_rwlock_destroy()
346 return ll_pthread_rwlock_destroy(rwlock); in pthread_rwlock_destroy()
349 int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) in pthread_rwlock_rdlock() argument
355 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock()
356 r = ll_pthread_rwlock_rdlock(rwlock); in pthread_rwlock_rdlock()
358 lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_); in pthread_rwlock_rdlock()
363 int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock) in pthread_rwlock_tryrdlock() argument
369 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_tryrdlock()
370 r = ll_pthread_rwlock_tryrdlock(rwlock); in pthread_rwlock_tryrdlock()
372 lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_); in pthread_rwlock_tryrdlock()
377 int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) in pthread_rwlock_trywrlock() argument
383 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_trywrlock()
384 r = ll_pthread_rwlock_trywrlock(rwlock); in pthread_rwlock_trywrlock()
386 lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_); in pthread_rwlock_trywrlock()
391 int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock) in pthread_rwlock_wrlock() argument
397 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_wrlock()
398 r = ll_pthread_rwlock_wrlock(rwlock); in pthread_rwlock_wrlock()
400 lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_); in pthread_rwlock_wrlock()
405 int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) in pthread_rwlock_unlock() argument
411 lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_); in pthread_rwlock_unlock()
412 r = ll_pthread_rwlock_unlock(rwlock); in pthread_rwlock_unlock()
414 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); in pthread_rwlock_unlock()