Lines Matching refs:thread

74 #include <kern/thread.h>
86 /* Force a preemption point for a thread and wait for it to stop running */
88 thread_t thread,
93 thread_t thread);
95 /* Wait for a thread to stop running */
97 thread_t thread,
100 /* Unblock thread on wake up */
102 thread_t thread,
105 /* Unblock and dispatch thread */
107 thread_t thread,
115 /* Switch directly to a particular thread */
122 /* Resume thread with new stack */
134 thread_t thread,
137 /* Set base priority of the specified thread */
139 thread_t thread,
142 /* Set the thread to be categorized as 'background' */
143 extern void sched_set_thread_throttled(thread_t thread,
146 /* Set the thread's true scheduling mode */
147 extern void sched_set_thread_mode(thread_t thread,
150 extern void sched_thread_mode_demote(thread_t thread,
153 extern void sched_thread_mode_undemote(thread_t thread,
156 /* Reset scheduled priority of thread */
158 thread_t thread,
161 /* Adjust scheduled priority of thread during execution */
163 thread_t thread);
170 thread_t thread);
173 thread_t thread);
176 thread_t thread);
178 extern void sched_traditional_quantum_expire(thread_t thread);
180 /* Idle processor thread */
196 /* Reschedule thread for execution */
198 thread_t thread,
208 /* Bind the current thread to a particular processor */
212 /* Choose the best processor to run a thread */
216 thread_t thread);
218 /* Choose a thread from a processor's priority-based runq */
226 thread_t thread);
237 thread_t thread,
242 thread_t thread);
248 thread_t thread);
258 thread_t thread);
263 /* Remove thread from its run queue */
265 thread_t thread);
268 void *thread,
272 thread_t thread);
282 void sched_traditional_fairshare_enqueue(thread_t thread);
286 boolean_t sched_traditional_fairshare_queue_remove(thread_t thread);
296 void sched_grrr_fairshare_enqueue(thread_t thread);
300 boolean_t sched_grrr_fairshare_queue_remove(thread_t thread);
305 /* Set the maximum interrupt level for the thread */
310 thread_t thread,
313 /* Wake up locked thread directly, passing result */
315 thread_t thread,
348 #define THREAD_URGENCY_BACKGROUND 1 /* indicates that the thread is marked as a "background" thread */
349 #define THREAD_URGENCY_NORMAL 2 /* indicates that the thread is marked as a "normal" thread */
350 #define THREAD_URGENCY_REAL_TIME 3 /* indicates that the thread is marked as a "real-time" or urgent thread */
352 /* Returns the "urgency" of a thread (provided by scheduler) */
354 thread_t thread,
358 /* Tells the "urgency" of the just scheduled thread (provided by CPU PM) */
386 /* Wake up thread directly, passing result */
388 thread_t thread,
391 /* Start thread running */
407 /* Declare thread will wait on a particular event */
412 /* Assert that the thread intends to wait with a timeout */
419 /* Assert that the thread intends to wait with an urgency, timeout and leeway */
433 /* Assert that the thread intends to wait with an urgency, deadline, and leeway */
441 /* Wake up thread (or threads) waiting on a particular event */
492 * Choose a thread of greater or equal priority from the per-processor
501 * Steal a thread from another processor in the pset so that it can run
512 thread_t thread,
516 * Pick the best processor for a thread (any kind of thread) to run on.
521 thread_t thread);
523 * Enqueue a timeshare or fixed priority thread onto the per-processor
528 thread_t thread,
535 /* Remove the specific thread from the per-processor runqueue */
538 thread_t thread);
555 * should cause the currently-running thread to be preempted?
560 * Does the per-processor runqueue contain a runnable thread
562 * thread selection
568 /* Quantum size for the specified non-realtime thread. */
569 uint32_t (*initial_quantum_size)(thread_t thread);
571 /* Scheduler mode for a new thread */
575 * Is it safe to call update_priority, which may change a thread's
579 boolean_t (*can_update_priority)(thread_t thread);
585 void (*update_priority)(thread_t thread);
588 void (*lightweight_update_priority)(thread_t thread);
591 void (*quantum_expire)(thread_t thread);
618 void (*fairshare_enqueue)(thread_t thread);
622 boolean_t (*fairshare_queue_remove)(thread_t thread);
629 * Use processor->next_thread to pin a thread to an idle