Lines Matching defs:idle_threads
291 static struct thread **idle_threads;
2221 idle_threads = zalloc(ncpu * sizeof(struct thread *));
2222 if (!idle_threads)
2229 idle_threads[i] = thread__new(0, 0);
2230 if (idle_threads[i] == NULL)
2233 ret = init_idle_thread(idle_threads[i]);
2245 if (idle_threads == NULL)
2249 if ((idle_threads[i]))
2250 thread__delete(idle_threads[i]);
2253 free(idle_threads);
2262 if ((cpu >= idle_max_cpu) || (idle_threads == NULL)) {
2266 p = realloc(idle_threads, j * sizeof(struct thread *));
2270 idle_threads = (struct thread **) p;
2272 idle_threads[i] = NULL;
2278 if (idle_threads[cpu] == NULL) {
2279 idle_threads[cpu] = thread__new(0, 0);
2281 if (idle_threads[cpu]) {
2282 if (init_idle_thread(idle_threads[cpu]) < 0)
2287 return idle_threads[cpu];
2867 t = idle_threads[i];
2891 t = idle_threads[i];