Lines Matching refs:thread
82 #define IDLEPRI 0 /* idle thread priority */
167 /* Type used for thread->sched_mode and saved_mode */
278 /* Handle quantum expiration for an executing thread */
281 timer_call_param_t thread);
365 /* TH_RUN & !TH_IDLE controls whether a thread has a run count */
373 extern void sched_share_incr(thread_t thread);
374 extern void sched_share_decr(thread_t thread);
375 extern void sched_background_incr(thread_t thread);
376 extern void sched_background_decr(thread_t thread);
378 extern void assert_thread_sched_count(thread_t thread);
381 /* sched_mode == TH_MODE_TIMESHARE controls whether a thread has a timeshare count when it has a run count */
392 /* TH_SFLAG_THROTTLED controls whether a thread has a background count when it has a run count and a share count */
410 * thread_timer_delta macro takes care of both thread timers.
412 #define thread_timer_delta(thread, delta) \
414 (delta) = (typeof(delta))timer_delta(&(thread)->system_timer, \
415 &(thread)->system_timer_save); \
416 (delta) += (typeof(delta))timer_delta(&(thread)->user_timer, \
417 &(thread)->user_timer_save); \