- /* Task and thread policy (inherited) */
- uint64_t int_darwinbg :1, /* marked as darwinbg via setpriority */
- ext_darwinbg :1,
- int_iotier :2, /* IO throttle tier */
- ext_iotier :2,
- int_iopassive :1, /* should IOs cause lower tiers to be throttled */
- ext_iopassive :1,
- bg_iotier :2, /* what IO throttle tier should apply to me when I'm darwinbg? (pushed to threads) */
- terminated :1, /* all throttles should be removed for quick exit or SIGTERM handling */
-
- /* Thread only policy */
- th_pidbind_bg :1, /* thread only: task i'm bound to is marked 'watchbg' */
- th_workq_bg :1, /* thread only: currently running a background priority workqueue */
- thrp_qos :3, /* thread only: thread qos class */
- thrp_qos_relprio :4, /* thread only: thread qos relative priority (store as inverse, -10 -> 0xA) */
- thrp_qos_override :3, /* thread only: thread qos class override */
-
- /* Task only policy */
- t_apptype :3, /* What apptype did launchd tell us this was (inherited) */
- t_boosted :1, /* Has a non-zero importance assertion count */
- t_int_gpu_deny :1, /* don't allow access to GPU */
- t_ext_gpu_deny :1,
- t_role :3, /* task's system role */
- t_tal_enabled :1, /* TAL mode is enabled */
- t_base_latency_qos :3, /* Timer latency QoS */
- t_over_latency_qos :3, /* Timer latency QoS override */
- t_base_through_qos :3, /* Computation throughput QoS */
- t_over_through_qos :3, /* Computation throughput QoS override */
- t_sfi_managed :1, /* SFI Managed task */
- t_qos_clamp :3, /* task qos clamp */
-
- /* Task only: suppression policies (non-embedded only) */
- t_sup_active :1, /* Suppression is on */
- t_sup_lowpri_cpu :1, /* Wants low priority CPU (MAXPRI_THROTTLE) */
- t_sup_timer :3, /* Wanted timer throttling QoS tier */
- t_sup_disk :1, /* Wants disk throttling */
- t_sup_cpu_limit :1, /* Wants CPU limit (not hooked up yet)*/
- t_sup_suspend :1, /* Wants to be suspended */
- t_sup_throughput :3, /* Wants throughput QoS tier */
- t_sup_cpu :1, /* Wants suppressed CPU priority (MAXPRI_SUPPRESSED) */
- t_sup_bg_sockets :1, /* Wants background sockets */
-
- reserved :2;
+ uint64_t trp_int_darwinbg :1, /* marked as darwinbg via setpriority */
+ trp_ext_darwinbg :1,
+ trp_int_iotier :2, /* IO throttle tier */
+ trp_ext_iotier :2,
+ trp_int_iopassive :1, /* should IOs cause lower tiers to be throttled */
+ trp_ext_iopassive :1,
+ trp_bg_iotier :2, /* what IO throttle tier should apply to me when I'm darwinbg? (pushed to threads) */
+ trp_terminated :1, /* all throttles should be removed for quick exit or SIGTERM handling */
+ trp_base_latency_qos :3, /* Timer latency QoS */
+ trp_base_through_qos :3, /* Computation throughput QoS */
+
+ trp_apptype :3, /* What apptype did launchd tell us this was (inherited) */
+ trp_boosted :1, /* Has a non-zero importance assertion count */
+ trp_role :3, /* task's system role */
+ trp_tal_enabled :1, /* TAL mode is enabled */
+ trp_over_latency_qos :3, /* Timer latency QoS override */
+ trp_over_through_qos :3, /* Computation throughput QoS override */
+ trp_sfi_managed :1, /* SFI Managed task */
+ trp_qos_clamp :3, /* task qos clamp */
+
+ /* suppression policies (non-embedded only) */
+ trp_sup_active :1, /* Suppression is on */
+ trp_sup_lowpri_cpu :1, /* Wants low priority CPU (MAXPRI_THROTTLE) */
+ trp_sup_timer :3, /* Wanted timer throttling QoS tier */
+ trp_sup_disk :1, /* Wants disk throttling */
+ trp_sup_throughput :3, /* Wants throughput QoS tier */
+ trp_sup_cpu :1, /* Wants suppressed CPU priority (MAXPRI_SUPPRESSED) */
+ trp_sup_bg_sockets :1, /* Wants background sockets */
+
+ trp_reserved :18;