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