Lines Matching refs:pthread
71 struct pthread;
72 extern struct pthread *_thr_initial __hidden;
83 typedef TAILQ_HEAD(pthreadlist, pthread) pthreadlist;
283 TAILQ_HEAD(, pthread) sq_blocked;
368 struct pthread { struct
398 TAILQ_ENTRY(pthread) tle; /* link for all threads in process */ argument
401 TAILQ_ENTRY(pthread) gcle;
404 LIST_ENTRY(pthread) hle;
407 TAILQ_ENTRY(pthread) wle;
479 struct pthread *joiner; argument
697 #define THR_REF_ADD(curthread, pthread) { \ argument
699 pthread->refcount++; \
702 #define THR_REF_DEL(curthread, pthread) { \ argument
703 pthread->refcount--; \
727 extern struct pthread *_thread_last_event;
775 extern struct pthread *_single_thread __hidden;
788 int _mutex_owned(struct pthread *, const struct pthread_mutex *) __hidden;
790 void _mutex_fork(struct pthread *curthread) __hidden;
791 int _mutex_enter_robust(struct pthread *curthread, struct pthread_mutex *m)
793 void _mutex_leave_robust(struct pthread *curthread, struct pthread_mutex *m)
795 void _libpthread_init(struct pthread *) __hidden;
796 struct pthread *_thr_alloc(struct pthread *) __hidden;
800 int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden;
801 void _thr_ref_delete(struct pthread *, struct pthread *) __hidden;
802 void _thr_ref_delete_unlocked(struct pthread *, struct pthread *) __hidden;
803 int _thr_find_thread(struct pthread *, struct pthread *, int) __hidden;
808 void _thr_free(struct pthread *, struct pthread *) __hidden;
809 void _thr_gc(struct pthread *) __hidden;
814 void _thr_cancel_enter(struct pthread *) __hidden;
815 void _thr_cancel_enter2(struct pthread *, int) __hidden;
816 void _thr_cancel_leave(struct pthread *, int) __hidden;
817 void _thr_testcancel(struct pthread *) __hidden;
818 void _thr_signal_block(struct pthread *) __hidden;
819 void _thr_signal_unblock(struct pthread *) __hidden;
821 void _thr_signal_block_setup(struct pthread *) __hidden;
824 int _thr_send_sig(struct pthread *, int sig) __hidden;
826 void _thr_hash_add(struct pthread *) __hidden;
827 void _thr_hash_remove(struct pthread *) __hidden;
828 struct pthread *_thr_hash_find(struct pthread *) __hidden;
829 void _thr_link(struct pthread *, struct pthread *) __hidden;
830 void _thr_unlink(struct pthread *, struct pthread *) __hidden;
832 void _thr_ast(struct pthread *) __hidden;
833 void _thr_report_creation(struct pthread *curthread,
834 struct pthread *newthread) __hidden;
835 void _thr_report_death(struct pthread *curthread) __hidden;
841 void _thr_suspend_all_lock(struct pthread *) __hidden;
842 void _thr_suspend_all_unlock(struct pthread *) __hidden;
845 void _thr_try_gc(struct pthread *, struct pthread *) __hidden;
934 int _thr_sleep(struct pthread *, int, const struct timespec *);
939 _thr_clear_wake(struct pthread *td) in _thr_clear_wake()
945 _thr_is_woken(struct pthread *td) in _thr_is_woken()
959 static inline struct pthread *
971 void _sleepq_add(void *, struct pthread *) __hidden;
972 int _sleepq_remove(struct sleepqueue *, struct pthread *) __hidden;
974 void (*cb)(struct pthread *, void *arg), void *) __hidden;
983 void _thr_stack_fix_protection(struct pthread *thrd);
1008 struct tcb *_tcb_ctor(struct pthread *, int);
1022 void __thr_malloc_prefork(struct pthread *curthread);
1023 void __thr_malloc_postfork(struct pthread *curthread);
1107 int _Tthr_sigqueue(pthread_t pthread, int sig, const union sigval value);