Lines Matching refs:threads
17 struct thread_map *threads; in thread_map__new_by_pid() local
28 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
29 if (threads != NULL) { in thread_map__new_by_pid()
31 threads->map[i] = atoi(namelist[i]->d_name); in thread_map__new_by_pid()
32 threads->nr = items; in thread_map__new_by_pid()
39 return threads; in thread_map__new_by_pid()
44 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid() local
46 if (threads != NULL) { in thread_map__new_by_tid()
47 threads->map[0] = tid; in thread_map__new_by_tid()
48 threads->nr = 1; in thread_map__new_by_tid()
51 return threads; in thread_map__new_by_tid()
61 void thread_map__delete(struct thread_map *threads) in thread_map__delete() argument
63 free(threads); in thread_map__delete()