Lines Matching refs:threads
2 #include "threads.h"
6 static struct threads_table_entry *threads__table(struct threads *threads, pid_t tid)
9 return &threads->table[(unsigned int)tid % THREADS__TABLE_SIZE];
23 void threads__init(struct threads *threads)
26 struct threads_table_entry *table = &threads->table[i];
34 void threads__exit(struct threads *threads)
36 threads__remove_all_threads(threads);
38 struct threads_table_entry *table = &threads->table[i];
45 size_t threads__nr(struct threads *threads)
50 struct threads_table_entry *table = &threads->table[i];
92 struct thread *threads__find(struct threads *threads, pid_t tid)
94 struct threads_table_entry *table = threads__table(threads, tid);
109 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created)
111 struct threads_table_entry *table = threads__table(threads, tid);
135 void threads__remove_all_threads(struct threads *threads)
138 struct threads_table_entry *table = &threads->table[i];
154 void threads__remove(struct threads *threads, struct thread *thread)
156 struct threads_table_entry *table = threads__table(threads, thread__tid(thread));
168 int threads__for_each_thread(struct threads *threads,
173 struct threads_table_entry *table = &threads->table[i];