Lines Matching refs:importance

61 static void restore_bgthreadpolicy_locked(thread_t thread, int selfset, int importance);
66 static void set_thread_appbg(thread_t thread, int setbg,int importance);
79 int importance; /* importance to be restored if thread is being made active */
325 integer_t importance)
344 task_priority(task, importance + BASEPRI_DEFAULT, task->max_priority);
786 thread->saved_importance = thread->importance;
790 policy.importance = INT_MIN;
826 policy.importance = INT_MIN;
895 int importance = 0;
900 /* remove the background and restore default importance as self(internal) removal */
904 importance = thread->saved_importance;
908 restore_bgthreadpolicy_locked(thread, 1, importance);
929 int importance = 0;
945 importance = thread->saved_importance;
949 restore_bgthreadpolicy_locked(thread, selfset, importance);
960 restore_bgthreadpolicy_locked(thread_t thread, int selfset, int importance)
985 policy.importance = importance;
1246 int importance = 0;
1261 importance = thread->saved_importance;
1266 restore_bgthreadpolicy_locked(thread, 1, importance);
1268 restore_bgthreadpolicy_locked(thread, 0, importance);
1966 twp->tw_importance = target_thread->importance;
2010 set_thread_appbg(thread_t thread, int setbg,int importance)
2014 restore_bgthreadpolicy_locked(thread, 0, importance);
2062 twp->tw_importance = twp->tw_thread->importance;
2063 threadlist[i].importance = INT_MIN;
2065 threadlist[i].importance = twp->tw_importance;
2073 set_thread_appbg(threadlist[j].thread, setbg, threadlist[j].importance);
2089 int importance = 0;
2100 importance = twp->tw_importance;
2103 set_thread_appbg(thread, 0, importance);
2292 proc_setthread_saved_importance(thread_t thread, int importance)
2297 /* the thread is still backgrounded , save the importance for restore time */
2298 thread->saved_importance = importance;