Lines Matching refs:thread
45 #include <kern/thread.h>
57 #include <kern/thread.h>
67 * the given thread. Policy can be any policy implemented by the
72 thread_t thread,
83 if ( thread == THREAD_NULL ||
90 thread_mtx_lock(thread);
163 thread_mtx_unlock(thread);
170 result = thread_set_mode_and_absolute_pri(thread, policy, bas);
173 thread_mtx_unlock(thread);
183 * the given thread. Policy must be a policy which is enabled for the
188 thread_t thread,
202 if (thread == THREAD_NULL)
205 thread_mtx_lock(thread);
209 thread_mtx_unlock(thread);
295 if (rr_base->base_priority > thread->max_priority) {
300 rr_limit.max_priority = thread->max_priority;
317 if (fifo_base->base_priority > thread->max_priority) {
322 fifo_limit.max_priority = thread->max_priority;
339 if (ts_base->base_priority > thread->max_priority) {
344 ts_limit.max_priority = thread->max_priority;
357 thread_mtx_unlock(thread);
360 result = thread_set_policy(thread, pset,