setTimeConstraintWithPriorityPolicy(to:)
Sets the thread’s time constraint policy (with a priority field).
func setTimeConstraintWithPriorityPolicy(to timeConstraintWithPriorityPolicy: thread_time_constraint_with_priority_policy) throws
Sets the thread’s time constraint policy (with a priority field).
func setTimeConstraintWithPriorityPolicy(to timeConstraintWithPriorityPolicy: thread_time_constraint_with_priority_policy) throws
s8MachCore0A0V19ThreadPolicyManagerV029setTimeConstraintWithPriorityD02toySo43thread_time_constraint_with_priority_policyV_tKF
What are these?1G1VP
import MachCore
The core module for interacting with the Mach kernel.
struct ThreadPolicyManager
A thread policy manager.
struct Mach
The Mach kernel.
struct thread_time_constraint_with_priority_policy
struct ThreadPolicyState
A thread’s policy state.
var policyState: thread_policy_state { get throws }
The thread’s policy state.
struct ThreadQoSPolicy
A thread’s QoS policy.
var qosPolicy: thread_qos_policy { get throws }
The thread’s QoS policy.
func setQoSPolicy(to qosPolicy: thread_qos_policy) throws
Sets the thread’s QoS policy.
struct ThreadTimeConstraintWithPriorityPolicy
A thread’s time constraint policy (with a priority field).
var timeConstraintWithPriorityPolicy: thread_time_constraint_with_priority_policy { get throws }
The thread’s time constraint policy (with a priority field).
struct ThreadRequestedQoSPolicy
A thread’s requested QoS policy.
var requestedQoSPolicy: thread_requested_qos_policy { get throws }
The thread’s requested QoS policy.
init(thread: Mach.Thread)
Creates a thread policy manager.
var affinityPolicy: thread_affinity_policy { get throws }
The thread’s affinity policy.
var extendedPolicy: thread_extended_policy { get throws }
The thread’s extended policy.
var latencyQoSPolicy: thread_latency_qos_policy { get throws }
The thread’s latency QoS policy.
let port: Mach.Thread
The thread port.
var precedencePolicy: thread_precedence_policy { get throws }
The thread’s precedence policy.
var throughputQoSPolicy: thread_throughput_qos_policy { get throws }
The thread’s throughput QoS policy.
var timeConstraintPolicy: thread_time_constraint_policy { get throws }
The thread’s time constraint policy.
func get<DataType>(_ flavor: Mach.ThreadPolicyFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
Gets the thread’s policy.
func set<DataType>(_ flavor: Mach.ThreadPolicyFlavor, to value: DataType) throws where DataType : BitwiseCopyable
Sets the thread’s policy.
func setAffinityPolicy(to affinityPolicy: thread_affinity_policy) throws
Sets the thread’s affinity policy.
func setExtendedPolicy(to extendedPolicy: thread_extended_policy) throws
Sets the thread’s extended policy.
func setLatencyQoSPolicy(to latencyQoSPolicy: thread_latency_qos_policy) throws
Sets the thread’s latency QoS policy.
func setPrecedencePolicy(to precedencePolicy: thread_precedence_policy) throws
Sets the thread’s precedence policy.
func setThroughputQoSPolicy(to throughputQoSPolicy: thread_throughput_qos_policy) throws
Sets the thread’s throughput QoS policy.
func setTimeConstraintPolicy(to timeConstraintPolicy: thread_time_constraint_policy) throws
Sets the thread’s time constraint policy.