Searched refs:threads (Results 1 - 25 of 25) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/
H A Ddb_task_thread.c75 #define DB_MAX_THREADID 0x10000 /* max # of threads in a task */
126 if (queue_first(&task->threads) == 0)
128 queue_iterate(&task->threads, thr_act, thread_t, task_threads) {
209 if (queue_first(&task->threads) == 0)
211 queue_iterate(&task->threads, thr_act, thread_t, task_threads) {
H A Ddb_break.c159 tp->tb_next = bkpt->threads;
160 bkpt->threads = tp;
175 for (tpp = &bkpt->threads; (tp = *tpp) != 0; tpp = &tp->tb_next)
179 db_free_thread_break_list = bkpt->threads;
180 bkpt->threads = 0;
185 for (tpp = &bkpt->threads; (tp = *tpp) != 0; tpp = &tp->tb_next)
208 for (tp = bkpt->threads; tp; tp = tp->tb_next) {
242 for (tp = bkpt->threads; tp; tp = tp->tb_next) {
288 for (tbp = bkpt->threads; tbp; tbp = tbp_next) {
300 if (bkpt->threads
[all...]
H A Ddb_break.h88 * Added db_thread_breakpoint structure, and added task and threads
94 * Added db_thread_breakpoint structure, and added task and threads
179 db_thread_breakpoint_t threads; /* thread */ member in struct:db_breakpoint
H A Ddb_print.c403 queue_iterate(&task->threads, thr_act, thread_t, task_threads) {
420 db_printf("no threads\n");
423 db_printf("%d threads: \n", task->thread_count);
428 queue_iterate(&task->threads, thr_act,
441 thread_t act = (thread_t)queue_first(&task->threads);
906 db_printf("No runnable threads\n");
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dbsd_kern.c105 thread_t thread = (thread_t)queue_first(&task->threads);
107 if (queue_end(&task->threads, (queue_entry_t)thread))
133 for (inc = (thread_t)queue_first(&task->threads);
134 !queue_end(&task->threads, (queue_entry_t)inc); ) {
181 for (inc = (thread_t)queue_first(&task->threads);
182 !queue_end(&task->threads, (queue_entry_t)inc); ) {
254 for (inc = (thread_t)queue_first(&task->threads);
255 !queue_end(&task->threads, (queue_entry_t)inc); inc = (thread_t)queue_next(&inc->task_threads))
486 for (inc = (thread_t)queue_first(&task->threads);
487 !queue_end(&task->threads, (queue_entry_
[all...]
H A Dtask.c242 queue_iterate(&task->threads, thread, thread_t, task_threads) {
353 queue_init(&new_task->threads);
575 * Indicate that we want all the threads to stop executing
589 queue_iterate(&task->threads, thread, thread_t, task_threads) {
668 * We hold the task, terminate all other threads in the task and
701 * Mark all the threads to keep them from starting any more
709 * Terminate all the other threads in the task.
711 queue_iterate(&task->threads, thread, thread_t, task_threads) {
770 * Iterate through all the threads and hold them.
772 queue_iterate(&task->threads, threa
[all...]
H A Dstack.c368 * Return info on stack usage for threads in a specific processor set
427 for (i = 0, thread = (thread_t) queue_first(&threads);
428 !queue_end(&threads, (queue_entry_t) thread);
429 thread = (thread_t) queue_next(&thread->threads)) {
H A Dprocessor.c93 queue_head_t threads; variable
124 queue_init(&threads);
643 * newly created and assigned threads. Optionally change existing
690 * Common internals for processor_set_{threads,tasks}
767 for (thread = (thread_t)queue_first(&threads);
768 !queue_end(&threads, (queue_entry_t)thread);
769 thread = (thread_t)queue_next(&thread->threads)) {
876 * List all threads in the processor set.
H A Dprocessor.h114 extern queue_head_t tasks, threads;
H A Dtask_policy.c142 queue_iterate(&task->threads, thread, thread_t, task_threads) {
H A Dthread.c250 "threads");
416 * Perform final clean up for terminating threads.
441 queue_remove(&task->threads, thread, thread_t, task_threads);
446 queue_remove(&threads, thread, thread_t, threads);
657 queue_enter(&parent_task->threads, new_thread, thread_t, task_threads);
660 /* So terminating threads don't need to take the task lock to decrement */
663 queue_enter(&threads, new_thread, thread_t, threads);
1072 * Special version of thread_assign for assigning threads t
[all...]
H A Dtask.h130 queue_head_t threads; member in struct:task
141 integer_t priority; /* base priority for threads */
142 integer_t max_priority; /* maximum priority for threads */
149 uint64_t total_user_time; /* terminated threads only */
275 /* Hold all threads in a task */
279 /* Release hold on all threads in a task */
283 /* Halt all other threads in the current task */
H A Dthread.h62 * This file contains the structure definitions for threads.
266 * - affinity_threads links task threads with the same affinity set
305 queue_chain_t threads; /* global list of all threads */ member in struct:thread
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/
H A Dchud_thread.c206 for (i = 0, thread = (thread_t)queue_first(&threads);
207 !queue_end(&threads, (queue_entry_t)thread);
208 thread = (thread_t)queue_next(&thread->threads)) {
331 for (thread = (thread_t)queue_first(&task->threads); i < actual;
337 assert(queue_end(&task->threads, (queue_entry_t)thread));
346 /* no threads, so return null pointer and deallocate memory */
/macosx-10.5.8/xnu-1228.15.4/tools/tests/affinity/
H A Dpool.c32 * queue and multiple threads. The first stage is the producer and subsequent
34 * and M consumer threads. The are B buffers per producer threads circulating
40 * work item, it sets its affinity to this tag. Hence consumer threads migrate
55 int threads; variable
233 if (threads_ready == threads) {
236 printf(" all threads ready for process %d, "
386 * Fire up the worker threads.
388 threads = consumers * (stages - 1) + producers;
410 worker_info = (worker_info_t *) malloc(threads * sizeo
[all...]
H A Dsets.c30 * We spin off sets of production line threads (2 sets by default).
31 * All threads of each line sets the same affinity tag (unless disabled).
32 * By default there are 2 stage (worker) threads per production line.
38 * Worker threads process (iterate over) 10000 buffers by default.
41 * to the set number, 1 .. N. So the threads of each set share an L2 cache.
55 int threads; variable
223 if (threads_ready == threads) {
226 printf(" all threads ready for process %d, "
407 * Fire up the worker threads.
409 threads
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Ddb_trace.c480 act_list = &(current_task()->threads);
487 act_list = &(((task_t)addr)->threads);
490 act_list = &(((thread_t)addr)->task->threads);
503 act_list = &th->task->threads;
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A DPseudoKernel.c87 fact = (thread_t)task->threads.next; /* Get the first activation on task */
224 * The assist code can be called from two types of threads. The blue thread, which handles
225 * traps, system calls and interrupts and preemptive threads that only issue system calls.
358 * Use the new PPCcall method to enable blue box threads
378 * Use the new PPCcall method to disable blue box threads
391 * Search through the list of threads to find the matching taskIDs, then
409 fact = (thread_t)task->threads.next; /* Get the first activation on task */
H A Ddb_trace.c792 act_list = &(current_task()->threads);
800 act_list = &(((task_t)addr)->threads);
804 act_list = &(((thread_act_t)addr)->task->threads);
818 act_list = &th->task->threads;
H A Ddb_low_trace.c677 for(act = (thread_act_t)task->threads.next; act != (thread_act_t)&task->threads; act = (thread_act_t)act->task_threads.next) { /* Go through activations */
H A Dvmachmon.c525 fact = (thread_t)task->threads.next; /* Get the first activation on task */
1900 fact = (thread_t)task->threads.next; /* Get the first activation on task */
H A Dhw_lock.s2236 bl EXT(thread_wakeup) ; wakeup threads
H A Dhw_exception.s239 * This is also the point where new threads come when they are created.
1766 fcknext: mr. r27,r27 ; (TEST/DEBUG) Any more threads?
H A Dhw_vm.s4022 ; when switching threads.
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp.c785 queue_iterate(&task->threads, thread, thread_t, task_threads){

Completed in 106 milliseconds