Lines Matching refs:priority

173 	priority(-1),
520 const char* name, int32 priority, void* arg, team_id team,
525 this->priority = priority;
915 thread->priority = attributes.priority == -1
916 ? B_NORMAL_PRIORITY : attributes.priority;
917 thread->priority = std::max(thread->priority,
919 thread->priority = std::min(thread->priority,
1216 info->priority = thread->priority;
1478 if (thread->priority > B_DISPLAY_PRIORITY) {
1516 kprintf("thread %" B_PRId32 " set to priority %" B_PRId32 "\n", id, prio);
1756 kprintf("%4" B_PRId32 " %p%5" B_PRId32 " %s\n", thread->priority,
1773 kprintf("priority: %" B_PRId32 " (I/O: %" B_PRId32 ")\n",
1774 thread->priority, thread->io_priority);
1968 || (realTimeOnly && thread->priority < B_REAL_TIME_DISPLAY_PRIORITY))
2007 // boost our priority to get this over with
2462 state, and if it has a higher priority than the other ready threads, it
2494 spawn_kernel_thread_etc(thread_func function, const char *name, int32 priority,
2498 ThreadCreationAttributes(function, name, priority, arg, team),
2693 int32 priority = thread->io_priority;
2694 if (priority < 0) {
2695 // negative I/O priority means using the (CPU) priority
2696 priority = thread->priority;
2699 return priority;
2704 thread_set_io_priority(int32 priority)
2709 thread->io_priority = priority;
2753 thread->priority = B_IDLE_PRIORITY;
2809 "Prints a list of all threads with realtime priority.\n", 0);
2823 "Set realtime priority threads to normal priority",
2825 "Sets the priority of all realtime threads or, if given, the one\n"
2826 "with the specified ID to \"normal\" priority.\n"
2844 add_debugger_command_etc("priority", &set_thread_prio,
2845 "Set a thread's priority",
2846 "<priority> [ <id> ]\n"
2847 "Sets the priority of the thread with the specified ID to the given\n"
2848 "priority. If no thread ID is given, the current thread is selected.\n"
2849 " <priority> - The thread's new priority (0 - 120)\n"
3316 thread_set_thread_priority(thread_id id, int32 priority, bool kernel)
3318 // make sure the passed in priority is within bounds
3319 if (priority > THREAD_MAX_SET_PRIORITY)
3320 priority = THREAD_MAX_SET_PRIORITY;
3321 if (priority < THREAD_MIN_SET_PRIORITY)
3322 priority = THREAD_MIN_SET_PRIORITY;
3336 return scheduler_set_thread_priority(thread, priority);
3341 set_thread_priority(thread_id id, int32 priority)
3343 return thread_set_thread_priority(id, priority, true);
3411 spawn_kernel_thread(thread_func function, const char *name, int32 priority,
3415 ThreadCreationAttributes(function, name, priority, arg),