Instance Methodnmggithub.kass 3.2.4MachCore
setCategoryPolicy(to:)
Sets the task’s category policy.
func setCategoryPolicy(to categoryPolicy: task_category_policy) throws
Sets the task’s category policy.
func setCategoryPolicy(to categoryPolicy: task_category_policy) throws
s8MachCore0A0V17TaskPolicyManagerV011setCategoryD02toySo20task_category_policyV_tKF
What are these?605LB
import MachCore
The core module for interacting with the Mach kernel.
struct TaskPolicyManager
A task policy manager.
struct Mach
The Mach kernel.
var categoryPolicy: task_category_policy { get throws }
The task’s category policy.
var suppressionPolicy: task_suppression_policy { get throws }
The task’s suppression policy.
func setSuppressionPolicy(to suppressionPolicy: task_suppression_policy) throws
Set’s the task’s suppression policy.
var policyState: task_policy_state { get throws }
The task’s policy state.
var qosPolicy: task_qos_policy { get throws }
The task’s QoS policy.
func setQoSPolicy(to qosPolicy: task_qos_policy) throws
Sets the task’s QoS policy.
func setLatencyQoSPolicy(to qosPolicy: task_qos_policy) throws
Set’s the task’s latency QoS policy.
func setThroughputQoSPolicy(to qosPolicy: task_qos_policy) throws
Set’s the task’s throughput QoS policy.
init(task: Mach.Task)
Creates a task policy manager.
let port: Mach.Task
The task port.
func get<DataType>(_ flavor: Mach.TaskPolicyFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
Gets the task’s policy.
func set<DataType>(_ flavor: Mach.TaskPolicyFlavor, to value: DataType) throws where DataType : BitwiseCopyable
Sets the task’s policy.