Lines Matching refs:pthread
62 static TAILQ_HEAD(, pthread) free_threadq;
69 LIST_HEAD(thread_hash_head, pthread);
74 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
96 _thr_gc(struct pthread *curthread) in _thr_gc()
98 struct pthread *td, *td_next; in _thr_gc()
99 TAILQ_HEAD(, pthread) worklist; in _thr_gc()
131 struct pthread *
132 _thr_alloc(struct pthread *curthread) in _thr_alloc()
134 struct pthread *thread = NULL; in _thr_alloc()
153 thread = __thr_calloc(1, sizeof(struct pthread)); in _thr_alloc()
166 __rangeof(struct pthread, _pthread_startzero, _pthread_endzero)); in _thr_alloc()
186 _thr_free(struct pthread *curthread, struct pthread *thread) in _thr_free()
219 thr_destroy(struct pthread *curthread __unused, struct pthread *thread) in thr_destroy()
233 _thr_link(struct pthread *curthread, struct pthread *thread) in _thr_link()
245 _thr_unlink(struct pthread *curthread, struct pthread *thread) in _thr_unlink()
254 _thr_hash_add(struct pthread *thread) in _thr_hash_add()
263 _thr_hash_remove(struct pthread *thread) in _thr_hash_remove()
268 struct pthread *
269 _thr_hash_find(struct pthread *thread) in _thr_hash_find()
271 struct pthread *td; in _thr_hash_find()
288 _thr_ref_add(struct pthread *curthread, struct pthread *thread, in _thr_ref_add()
308 _thr_ref_delete(struct pthread *curthread, struct pthread *thread) in _thr_ref_delete()
318 _thr_try_gc(struct pthread *curthread, struct pthread *thread) in _thr_try_gc()
339 _thr_find_thread(struct pthread *curthread, struct pthread *thread, in _thr_find_thread()
342 struct pthread *pthread; in _thr_find_thread() local
350 pthread = _thr_hash_find(thread); in _thr_find_thread()
351 if (pthread) { in _thr_find_thread()
352 THR_THREAD_LOCK(curthread, pthread); in _thr_find_thread()
353 if (include_dead == 0 && pthread->state == PS_DEAD) { in _thr_find_thread()
354 THR_THREAD_UNLOCK(curthread, pthread); in _thr_find_thread()
379 struct pthread *curthread, *thrd; in __pthread_distribute_static_tls()