Static Propertynmggithub.kass 3.2.4MachCore
read
A thread’s read port.
static let read: Mach.ThreadSpecialPort
A thread’s read port.
static let read: Mach.ThreadSpecialPort
import MachCore
The core module for interacting with the Mach kernel.
struct ThreadSpecialPort
A special port for a thread.
struct Mach
The Mach kernel.
init(rawValue: task_special_port_t)
static let control: Mach.ThreadSpecialPort
A thread’s control port.
static let inspect: Mach.ThreadSpecialPort
A thread’s inspect 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