Lines Matching defs:pthread

35 #include <pthread.h>
61 static TAILQ_HEAD(, pthread) free_threadq;
68 LIST_HEAD(thread_hash_head, pthread);
73 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
95 _thr_gc(struct pthread *curthread)
97 struct pthread *td, *td_next;
98 TAILQ_HEAD(, pthread) worklist;
130 struct pthread *
131 _thr_alloc(struct pthread *curthread)
133 struct pthread *thread = NULL;
152 thread = calloc(1, sizeof(struct pthread));
165 __rangeof(struct pthread, _pthread_startzero, _pthread_endzero));
185 _thr_free(struct pthread *curthread, struct pthread *thread)
208 * pthread id is reused too quickly, may help some buggy apps.
218 thr_destroy(struct pthread *curthread __unused, struct pthread *thread)
232 _thr_link(struct pthread *curthread, struct pthread *thread)
244 _thr_unlink(struct pthread *curthread, struct pthread *thread)
253 _thr_hash_add(struct pthread *thread)
262 _thr_hash_remove(struct pthread *thread)
267 struct pthread *
268 _thr_hash_find(struct pthread *thread)
270 struct pthread *td;
287 _thr_ref_add(struct pthread *curthread, struct pthread *thread,
307 _thr_ref_delete(struct pthread *curthread, struct pthread *thread)
317 _thr_try_gc(struct pthread *curthread, struct pthread *thread)
338 _thr_find_thread(struct pthread *curthread, struct pthread *thread,
341 struct pthread *pthread;
349 pthread = _thr_hash_find(thread);
350 if (pthread) {
351 THR_THREAD_LOCK(curthread, pthread);
352 if (include_dead == 0 && pthread->state == PS_DEAD) {
353 THR_THREAD_UNLOCK(curthread, pthread);