Instance Propertynmggithub.kass 3.2.4MachCore
categoryPolicy
The task’s category policy.
var categoryPolicy: task_category_policy { get throws }
The task’s category policy.
var categoryPolicy: task_category_policy { get throws }
s8MachCore0A0V17TaskPolicyManagerV08categoryD0So05task_F7_policyVvp
What are these?4RIW4
import MachCore
The core module for interacting with the Mach kernel.
struct TaskPolicyManager
A task policy manager.
struct Mach
The Mach kernel.
func setCategoryPolicy(to categoryPolicy: task_category_policy) throws
Sets 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.