Lines Matching refs:threadlist
3091 thread_watchlist_t * threadlist; in apply_appstate_watchers() local
3100 threadlist = kalloc_type(thread_watchlist_t, numwatchers, Z_WAITOK | Z_ZERO); in apply_appstate_watchers()
3101 if (threadlist == NULL) { in apply_appstate_watchers()
3111 kfree_type(thread_watchlist_t, numwatchers, threadlist); in apply_appstate_watchers()
3117 kfree_type(thread_watchlist_t, numwatchers, threadlist); in apply_appstate_watchers()
3126 threadlist[i].thread = twp->tw_thread; in apply_appstate_watchers()
3127 thread_reference(threadlist[i].thread); in apply_appstate_watchers()
3130 threadlist[i].importance = INT_MIN; in apply_appstate_watchers()
3132 threadlist[i].importance = twp->tw_importance; in apply_appstate_watchers()
3143 set_thread_appbg(threadlist[j].thread, setbg, threadlist[j].importance); in apply_appstate_watchers()
3144 thread_deallocate(threadlist[j].thread); in apply_appstate_watchers()
3146 kfree_type(thread_watchlist_t, numwatchers, threadlist); in apply_appstate_watchers()