Initializernmggithub.kass 3.2.4MachCore
init(rawValue:)
ThreadSpecialPorts.swift:10init(rawValue: task_special_port_t)
init(rawValue: task_special_port_t)
s8MachCore0A0V17ThreadSpecialPortV8rawValueAEs5Int32V_tcfc
What are these?1MPCQ
import MachCore
The core module for interacting with the Mach kernel.
struct ThreadSpecialPort
A special port for a thread.
struct Mach
The Mach kernel.
static let control: Mach.ThreadSpecialPort
A thread’s control port.
static let inspect: Mach.ThreadSpecialPort
A thread’s inspect port.
static let read: Mach.ThreadSpecialPort
A thread’s read port.
let rawValue: task_special_port_t
func get<PortType>(for thread: Mach.Thread = .current, as type: PortType.Type = PortType.self) throws -> PortType where PortType : Mach.Port
Gets a special port for the thread.
func set(for thread: Mach.Thread = .current, to port: Mach.Port) throws
Sets a special port for the thread.
typealias ParentPort = Mach.Thread