Lines Matching defs:th
108 struct thread *th;
120 th = rb_entry(parent, struct thread, rb_node);
122 if (th->pid == pid) {
123 self->last_match = th;
124 return th;
127 if (pid < th->pid)
133 th = thread__new(pid);
134 if (th != NULL) {
135 rb_link_node(&th->rb_node, parent, p);
136 rb_insert_color(&th->rb_node, &self->threads);
137 self->last_match = th;
140 return th;