Lines Matching refs:pthread_mutex

53 _Static_assert(sizeof(struct pthread_mutex) <= THR_PAGE_SIZE_MIN,
77 static int mutex_unlock_common(struct pthread_mutex *, bool, int *);
81 static int mutex_qidx(struct pthread_mutex *m);
82 static bool is_robust_mutex(struct pthread_mutex *m);
83 static bool is_pshared_mutex(struct pthread_mutex *m);
120 mutex_init_link(struct pthread_mutex *m __unused) in mutex_init_link()
132 mutex_assert_is_owned(struct pthread_mutex *m __unused) in mutex_assert_is_owned()
144 struct pthread_mutex *m __unused) in mutex_assert_not_owned()
167 is_pshared_mutex(struct pthread_mutex *m) in is_pshared_mutex()
174 is_robust_mutex(struct pthread_mutex *m) in is_robust_mutex()
181 _mutex_enter_robust(struct pthread *curthread, struct pthread_mutex *m) in _mutex_enter_robust()
197 _mutex_leave_robust(struct pthread *curthread, struct pthread_mutex *m __unused) in _mutex_leave_robust()
237 mutex_init_body(struct pthread_mutex *pmutex, in mutex_init_body()
280 struct pthread_mutex *pmutex; in mutex_init()
292 sizeof(struct pthread_mutex))) == NULL) in mutex_init()
320 set_inherited_priority(struct pthread *curthread, struct pthread_mutex *m) in set_inherited_priority()
322 struct pthread_mutex *m2; in set_inherited_priority()
332 shared_mutex_init(struct pthread_mutex *pmtx, const struct in shared_mutex_init()
381 struct pthread_mutex *pmtx; in __Tthr_mutex_init()
439 struct pthread_mutex *m; in queue_fork()
501 mutex_qidx(struct pthread_mutex *m) in mutex_qidx()
522 enqueue_mutex(struct pthread *curthread, struct pthread_mutex *m, in enqueue_mutex()
525 struct pthread_mutex *m1; in enqueue_mutex()
542 struct pthread_mutex, m_lock); in enqueue_mutex()
554 dequeue_mutex(struct pthread *curthread, struct pthread_mutex *m) in dequeue_mutex()
556 struct pthread_mutex *mp, *mn; in dequeue_mutex()
575 struct pthread_mutex, m_lock); in dequeue_mutex()
590 check_and_init_mutex(pthread_mutex_t *mutex, struct pthread_mutex **m) in check_and_init_mutex()
618 struct pthread_mutex *m; in __Tthr_mutex_trylock()
648 mutex_lock_sleep(struct pthread *curthread, struct pthread_mutex *m, in mutex_lock_sleep()
716 mutex_lock_common(struct pthread_mutex *m, const struct timespec *abstime, in mutex_lock_common()
747 struct pthread_mutex *m; in __Tthr_mutex_lock()
761 struct pthread_mutex *m; in __pthread_mutex_timedlock()
774 struct pthread_mutex *mp; in _thr_mutex_unlock()
788 _mutex_cv_lock(struct pthread_mutex *m, int count, bool rb_onlist) in _mutex_cv_lock()
799 _mutex_cv_unlock(struct pthread_mutex *m, int *count, int *defer) in _mutex_cv_unlock()
812 _mutex_cv_attach(struct pthread_mutex *m, int count) in _mutex_cv_attach()
823 _mutex_cv_detach(struct pthread_mutex *mp, int *recurse) in _mutex_cv_detach()
855 mutex_self_trylock(struct pthread_mutex *m) in mutex_self_trylock()
884 mutex_self_lock(struct pthread_mutex *m, const struct timespec *abstime) in mutex_self_lock()
953 mutex_unlock_common(struct pthread_mutex *m, bool cv, int *mtx_defer) in mutex_unlock_common()
1009 struct pthread_mutex *m; in _pthread_mutex_getprioceiling()
1032 struct pthread_mutex *m, *m1, *m2; in _pthread_mutex_setprioceiling()
1097 struct pthread_mutex *m; in _pthread_mutex_getspinloops_np()
1109 struct pthread_mutex *m; in __pthread_mutex_setspinloops_np()
1121 struct pthread_mutex *m; in _pthread_mutex_getyieldloops_np()
1133 struct pthread_mutex *m; in __pthread_mutex_setyieldloops_np()
1145 struct pthread_mutex *m; in _pthread_mutex_isowned_np()
1161 _mutex_owned(struct pthread *curthread, const struct pthread_mutex *mp) in _mutex_owned()
1177 struct pthread_mutex *m; in _Tthr_mutex_consistent()