Operatornmggithub.kass 3.2.4MachCore
==(_:_:)
Compares a given count to the user reference count.
static func == (lhs: mach_port_urefs_t, rhs: UserRefs) throws -> Bool
Compares a given count to the user reference count.
static func == (lhs: mach_port_urefs_t, rhs: UserRefs) throws -> Bool
import MachCore
The core module for interacting with the Mach kernel.
struct UserRefs
A user reference count for a port right.
struct Mach
The Mach kernel.
class Port
A port name
in the owningTask
’s name space.
@frozen struct Bool
A value type whose instances are either true
or false
.
static func += (refs: UserRefs, delta: mach_port_delta_t) throws
Increments the user reference count.
static func -= (refs: UserRefs, delta: mach_port_delta_t) throws
Decrements the user reference count.
static func == (lhs: UserRefs, rhs: mach_port_urefs_t) throws -> Bool
Compares the user reference count to a given count.
var count: mach_port_urefs_t { get throws }
The user reference count.