Instance Propertynmggithub.kass 3.2.4MachCore
name
The name of the policy option, if it can be determined.
var name: String?
The name of the policy option, if it can be determined.
var name: String?
import MachCore
The core module for interacting with the Mach kernel.
struct SemaphorePolicy
A synchronization policy for a semaphore.
struct Mach
The Mach kernel.
@frozen struct String
A Unicode string value that is a collection of characters.
let rawValue: sync_policy_t
The raw value of the policy option.
init(name: String?, rawValue: sync_policy_t)
Represents a raw policy option with an optional name.
static let allCases: [`Self`]
All known synchronization policies.
static let fifo: Mach.SemaphorePolicy
First-in-first-out policy.
static let lifo: Mach.SemaphorePolicy
Last-in-first-out policy.