Lines Matching refs:thread
64 static struct thread *__threads_table_entry__get_last_match(struct threads_table_entry *table, in __threads_table_entry__get_last_match()
67 struct thread *th, *res = NULL; in __threads_table_entry__get_last_match()
78 struct thread *th) in __threads_table_entry__set_last_match()
85 struct thread *th) in threads_table_entry__set_last_match()
92 struct thread *threads__find(struct threads *threads, pid_t tid) in threads__find()
95 struct thread *res; in threads__find()
109 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created) in threads__findnew()
112 struct thread *res = NULL; in threads__findnew()
145 struct thread *old_value; 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()
157 struct thread *old_value; in threads__remove()
160 if (table->last_match && RC_CHK_EQUAL(table->last_match, thread)) in threads__remove()
163 hashmap__delete(&table->shard, thread__tid(thread), /*old_key=*/NULL, &old_value); in threads__remove()
169 int (*fn)(struct thread *thread, void *data), in threads__for_each_thread() argument
179 int rc = fn((struct thread *)cur->pvalue, data); in threads__for_each_thread()