Documentation
¶
Overview ¶
Package os provides Go bindings for the os framework.
Coordinate the scheduling and synchronization of your app’s tasks, and log information to the console to diagnose issues.
Essentials ¶
- Reading UNIX Manual Pages: Use the Terminal app to read the documentation for low-level UNIX tools and APIs.
Logs ¶
- Logging: Capture telemetry from your app for debugging and performance analysis using the unified logging system. (OSLogType, OSSignpostType)
Memory ¶
- OSBlock: A block that takes no arguments and returns no value.
- OSFunction: A pointer to a function.
- OSRelease
- OSRetain
Functions ¶
Enumerations ¶
Key Types ¶
- OSObject
- OSOSWorkgroup
- OSOSWorkgroupInterval
- OSOSWorkgroupParallel
- OSLog - A container of related log messages.
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- func NewOSBlock(handler OSBlock) (objc.ID, func())
- func OSActivityApply(activity OSActivity, block OSBlock)
- func OSActivityApplyF(activity OSActivity, context unsafe.Pointer, function OSFunction)
- func OSActivityScopeEnter(activity OSActivity, state OSActivityScopeState)
- func OSActivityScopeLeave(state OSActivityScopeState)
- func OSLogCreate(subsystem string, category string) kernel.Os_log_t
- func OSLogTypeEnabled(oslog kernel.Os_log_t, type_ OSLogType) bool
- func OSRelease(object unsafe.Pointer)
- func OSRetain(object unsafe.Pointer) unsafe.Pointer
- func OSSecurityConfigGetForProc(pid int32, config *OSSecurityConfig) int32
- func OSSecurityConfigGetForTask(task uint32, config *OSSecurityConfig) int32
- func OSSignpostEnabled(log kernel.Os_log_t) bool
- func OSSyncWaitOnAddress(addr unsafe.Pointer, value uint64, size uintptr, ...) int32
- func OSSyncWaitOnAddressWithDeadline(addr unsafe.Pointer, value uint64, size uintptr, ...) int32
- func OSSyncWaitOnAddressWithTimeout(addr unsafe.Pointer, value uint64, size uintptr, ...) int32
- func OSSyncWakeByAddressAll(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32
- func OSSyncWakeByAddressAny(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32
- func OSUnfairLockAssertNotOwner(lock *[4]byte)
- func OSUnfairLockAssertOwner(lock *[4]byte)
- func OSUnfairLockLock(lock unsafe.Pointer)
- func OSUnfairLockLockWithFlags(lock unsafe.Pointer, flags OSUnfairLockFlags)
- func OSUnfairLockTrylock(lock unsafe.Pointer) bool
- func OSUnfairLockUnlock(lock unsafe.Pointer)
- func OSWorkgroupCancel(wg OSWorkgroup)
- func OSWorkgroupCopyPort(wg OSWorkgroup, mach_port_out *uint32) int32
- func OSWorkgroupGetWorkingArena(wg OSWorkgroup, index_out *OSWorkgroupIndex) unsafe.Pointer
- func OSWorkgroupIntervalFinish(wg OSWorkgroupInterval, data OSWorkgroupIntervalData) int32
- func OSWorkgroupIntervalStart(wg OSWorkgroupInterval, start uint64, deadline uint64, ...) int32
- func OSWorkgroupIntervalUpdate(wg OSWorkgroupInterval, deadline uint64, data OSWorkgroupIntervalData) int32
- func OSWorkgroupJoin(wg OSWorkgroup, token_out OSWorkgroupJoinToken) int32
- func OSWorkgroupLeave(wg OSWorkgroup, token OSWorkgroupJoinToken)
- func OSWorkgroupMaxParallelThreads(wg OSWorkgroup, attr OSWorkgroupMptAttr) int32
- func OSWorkgroupSetWorkingArena(wg OSWorkgroup, arena unsafe.Pointer, max_workers uint32, ...) int32
- func OSWorkgroupTestcancel(wg OSWorkgroup) bool
- type IOSLog
- type IOSOSWorkgroup
- type IOSOSWorkgroupInterval
- type IOSOSWorkgroupParallel
- type IOSObject
- type OSActivity
- type OSActivityFlag
- type OSActivityID
- type OSActivityScopeState
- type OSActivityScopeStateS
- type OSBlock
- type OSClockid
- type OSFunction
- type OSLog
- type OSLogClass
- type OSLogType
- type OSOSWorkgroup
- type OSOSWorkgroupClass
- type OSOSWorkgroupInterval
- type OSOSWorkgroupIntervalClass
- type OSOSWorkgroupParallel
- type OSOSWorkgroupParallelClass
- type OSObject
- type OSObjectClass
- type OSSecurityConfig
- type OSSignpostID
- type OSSignpostType
- type OSSyncWaitOnAddressFlags
- type OSSyncWakeByAddressFlags
- type OSUnfairLock
- type OSUnfairLockFlags
- type OSUnfairLockS
- type OSWorkgroup
- type OSWorkgroupAttr
- type OSWorkgroupAttrOpaqueS
- type OSWorkgroupAttrS
- type OSWorkgroupIndex
- type OSWorkgroupInterval
- type OSWorkgroupIntervalData
- type OSWorkgroupIntervalDataOpaqueS
- type OSWorkgroupIntervalDataS
- type OSWorkgroupJoinToken
- type OSWorkgroupJoinTokenOpaqueS
- type OSWorkgroupJoinTokenS
- type OSWorkgroupMptAttr
- type OSWorkgroupMptAttrS
- type OSWorkgroupParallel
- type OSWorkgroupWorkingArenaDestructor
- type OS_os_activity
- type OS_os_activityObject
- type OS_os_log
- type OS_os_logObject
- type OS_os_workgroup_interval
- type OS_os_workgroup_intervalObject
- type OS_os_workgroup_parallel
- type OS_os_workgroup_parallelObject
- type Os_activity_flag_t
- type Os_activity_id_t
- type Os_activity_scope_state_s
- type Os_activity_scope_state_t
- type Os_activity_t
- type Os_block_t
- type Os_clockid_t
- type Os_function_t
- type Os_log_type_t
- type Os_security_config_t
- type Os_signpost_id_t
- type Os_signpost_type_t
- type Os_sync_wait_on_address_flags_t
- type Os_sync_wake_by_address_flags_t
- type Os_unfair_lock
- type Os_unfair_lock_flags_t
- type Os_unfair_lock_s
- type Os_workgroup_attr_opaque_s
- type Os_workgroup_attr_s
- type Os_workgroup_attr_t
- type Os_workgroup_index
- type Os_workgroup_interval_data_opaque_s
- type Os_workgroup_interval_data_s
- type Os_workgroup_interval_data_t
- type Os_workgroup_interval_t
- type Os_workgroup_join_token_opaque_s
- type Os_workgroup_join_token_s
- type Os_workgroup_join_token_t
- type Os_workgroup_mpt_attr_s
- type Os_workgroup_mpt_attr_t
- type Os_workgroup_parallel_t
- type Os_workgroup_t
- type Os_workgroup_working_arena_destructor_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOSBlock ¶
NewOSBlock wraps a Go OSBlock as an Objective-C block. The caller must defer the returned cleanup function.
func OSActivityApply ¶ added in v0.6.17
func OSActivityApply(activity OSActivity, block OSBlock)
OSActivityApply execute a block using a given activity object.
See: https://developer.apple.com/documentation/os/os_activity_apply
func OSActivityApplyF ¶ added in v0.6.17
func OSActivityApplyF(activity OSActivity, context unsafe.Pointer, function OSFunction)
OSActivityApplyF execute a function using a given activity object.
See: https://developer.apple.com/documentation/os/os_activity_apply_f
func OSActivityScopeEnter ¶ added in v0.6.17
func OSActivityScopeEnter(activity OSActivity, state OSActivityScopeState)
OSActivityScopeEnter switches the current activity, saving the existing execution context.
See: https://developer.apple.com/documentation/os/os_activity_scope_enter
func OSActivityScopeLeave ¶ added in v0.6.17
func OSActivityScopeLeave(state OSActivityScopeState)
OSActivityScopeLeave restores the current activity to a previously saved state.
See: https://developer.apple.com/documentation/os/os_activity_scope_leave
func OSLogCreate ¶ added in v0.6.17
OSLogCreate creates a custom log object.
See: https://developer.apple.com/documentation/os/os_log_create
func OSLogTypeEnabled ¶ added in v0.6.17
OSLogTypeEnabled returns a Boolean value that indicates whether the log can write messages with the specified log type.
See: https://developer.apple.com/documentation/os/OSLog/isEnabled(type:)
func OSRelease ¶ added in v0.6.17
OSRelease.
See: https://developer.apple.com/documentation/os/os_release-c.func
func OSRetain ¶ added in v0.6.17
OSRetain.
See: https://developer.apple.com/documentation/os/os_retain-c.func
func OSSecurityConfigGetForProc ¶ added in v0.6.17
func OSSecurityConfigGetForProc(pid int32, config *OSSecurityConfig) int32
OSSecurityConfigGetForProc.
See: https://developer.apple.com/documentation/os/os_security_config_get_for_proc
func OSSecurityConfigGetForTask ¶ added in v0.6.17
func OSSecurityConfigGetForTask(task uint32, config *OSSecurityConfig) int32
OSSecurityConfigGetForTask.
See: https://developer.apple.com/documentation/os/os_security_config_get_for_task
func OSSignpostEnabled ¶ added in v0.6.17
OSSignpostEnabled returns a Boolean value that indicates whether signposts are in an enabled state for the specified log.
See: https://developer.apple.com/documentation/os/os_signpost_enabled
func OSSyncWaitOnAddress ¶ added in v0.6.17
func OSSyncWaitOnAddress(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags) int32
OSSyncWaitOnAddress an atomic compare-and-wait operation, used to implement higher-level synchronization primitives.
See: https://developer.apple.com/documentation/os/os_sync_wait_on_address
func OSSyncWaitOnAddressWithDeadline ¶ added in v0.6.17
func OSSyncWaitOnAddressWithDeadline(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags, clockid OSClockid, deadline uint64) int32
OSSyncWaitOnAddressWithDeadline an atomic compare-and-wait operation with a deadline, used to implement higher-level synchronization primitives.
See: https://developer.apple.com/documentation/os/os_sync_wait_on_address_with_deadline
func OSSyncWaitOnAddressWithTimeout ¶ added in v0.6.17
func OSSyncWaitOnAddressWithTimeout(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags, clockid OSClockid, timeout_ns uint64) int32
OSSyncWaitOnAddressWithTimeout an atomic compare-and-wait operation with a timeout, used to implement higher-level synchronization primitives.
See: https://developer.apple.com/documentation/os/os_sync_wait_on_address_with_timeout
func OSSyncWakeByAddressAll ¶ added in v0.6.17
func OSSyncWakeByAddressAll(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32
OSSyncWakeByAddressAll an atomic operation that wakes all threads blocked on a futex wait, used to implement higher-level synchronization primitives.
See: https://developer.apple.com/documentation/os/os_sync_wake_by_address_all
func OSSyncWakeByAddressAny ¶ added in v0.6.17
func OSSyncWakeByAddressAny(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32
OSSyncWakeByAddressAny an atomic operation that wakes one thread blocked on a futex wait, used to implement higher-level synchronization primitives.
See: https://developer.apple.com/documentation/os/os_sync_wake_by_address_any
func OSUnfairLockAssertNotOwner ¶ added in v0.6.17
func OSUnfairLockAssertNotOwner(lock *[4]byte)
OSUnfairLockAssertNotOwner triggers an assertion if the calling thread owns the specified unfair lock.
See: https://developer.apple.com/documentation/os/os_unfair_lock_assert_not_owner
func OSUnfairLockAssertOwner ¶ added in v0.6.17
func OSUnfairLockAssertOwner(lock *[4]byte)
OSUnfairLockAssertOwner triggers an assertion if the calling thread doesn’t own the specified unfair lock.
See: https://developer.apple.com/documentation/os/os_unfair_lock_assert_owner
func OSUnfairLockLock ¶ added in v0.6.17
OSUnfairLockLock a low-level lock that allows waiters to block efficiently on contention.
See: https://developer.apple.com/documentation/os/os_unfair_lock_lock
func OSUnfairLockLockWithFlags ¶ added in v0.6.17
func OSUnfairLockLockWithFlags(lock unsafe.Pointer, flags OSUnfairLockFlags)
OSUnfairLockLockWithFlags.
See: https://developer.apple.com/documentation/os/os_unfair_lock_lock_with_flags
func OSUnfairLockTrylock ¶ added in v0.6.17
OSUnfairLockTrylock locks an unfair lock if it is not already locked.
See: https://developer.apple.com/documentation/os/os_unfair_lock_trylock
func OSUnfairLockUnlock ¶ added in v0.6.17
OSUnfairLockUnlock unlocks an unfair lock.
See: https://developer.apple.com/documentation/os/os_unfair_lock_unlock
func OSWorkgroupCancel ¶ added in v0.6.17
func OSWorkgroupCancel(wg OSWorkgroup)
OSWorkgroupCancel cancels and invalidates the specified workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_cancel
func OSWorkgroupCopyPort ¶ added in v0.6.17
func OSWorkgroupCopyPort(wg OSWorkgroup, mach_port_out *uint32) int32
OSWorkgroupCopyPort returns the Mach port associated with the workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_copy_port
func OSWorkgroupGetWorkingArena ¶ added in v0.6.17
func OSWorkgroupGetWorkingArena(wg OSWorkgroup, index_out *OSWorkgroupIndex) unsafe.Pointer
OSWorkgroupGetWorkingArena retrieves the workgroup’s shared data, and the thread-specific index into that data.
See: https://developer.apple.com/documentation/os/os_workgroup_get_working_arena
func OSWorkgroupIntervalFinish ¶ added in v0.6.17
func OSWorkgroupIntervalFinish(wg OSWorkgroupInterval, data OSWorkgroupIntervalData) int32
OSWorkgroupIntervalFinish stops the current interval-based execution of the workgroup’s threads.
See: https://developer.apple.com/documentation/os/os_workgroup_interval_finish
func OSWorkgroupIntervalStart ¶ added in v0.6.17
func OSWorkgroupIntervalStart(wg OSWorkgroupInterval, start uint64, deadline uint64, data OSWorkgroupIntervalData) int32
OSWorkgroupIntervalStart starts the regular execution of the workgroup’s threads at the specified time.
See: https://developer.apple.com/documentation/os/os_workgroup_interval_start
func OSWorkgroupIntervalUpdate ¶ added in v0.6.17
func OSWorkgroupIntervalUpdate(wg OSWorkgroupInterval, deadline uint64, data OSWorkgroupIntervalData) int32
OSWorkgroupIntervalUpdate schedules a new deadline for workgroup threads that run at regular intervals.
See: https://developer.apple.com/documentation/os/os_workgroup_interval_update
func OSWorkgroupJoin ¶ added in v0.6.17
func OSWorkgroupJoin(wg OSWorkgroup, token_out OSWorkgroupJoinToken) int32
OSWorkgroupJoin adds the current thread to the specified workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_join
func OSWorkgroupLeave ¶ added in v0.6.17
func OSWorkgroupLeave(wg OSWorkgroup, token OSWorkgroupJoinToken)
OSWorkgroupLeave removes the current thread from the workgroup it previously joined.
See: https://developer.apple.com/documentation/os/os_workgroup_leave
func OSWorkgroupMaxParallelThreads ¶ added in v0.6.17
func OSWorkgroupMaxParallelThreads(wg OSWorkgroup, attr OSWorkgroupMptAttr) int32
OSWorkgroupMaxParallelThreads returns the maximum number of threads that the system recommends you add to the specified workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_max_parallel_threads
func OSWorkgroupSetWorkingArena ¶ added in v0.6.17
func OSWorkgroupSetWorkingArena(wg OSWorkgroup, arena unsafe.Pointer, max_workers uint32, destructor OSWorkgroupWorkingArenaDestructor) int32
OSWorkgroupSetWorkingArena distributes a block of managed memory to the threads of a workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_set_working_arena
func OSWorkgroupTestcancel ¶ added in v0.6.17
func OSWorkgroupTestcancel(wg OSWorkgroup) bool
OSWorkgroupTestcancel returns a Boolean value that indicates whether the workgroup is canceled.
See: https://developer.apple.com/documentation/os/os_workgroup_testcancel
Types ¶
type IOSLog ¶
type IOSLog interface {
objectivec.IObject
}
An interface definition for the OSLog class.
type IOSOSWorkgroup ¶ added in v0.6.17
type IOSOSWorkgroup interface {
IOSObject
}
An interface definition for the OSOSWorkgroup class.
See: https://developer.apple.com/documentation/os/OS_os_workgroup
type IOSOSWorkgroupInterval ¶ added in v0.6.17
type IOSOSWorkgroupInterval interface {
IOSOSWorkgroup
OS_os_workgroup_interval
}
An interface definition for the OSOSWorkgroupInterval class.
See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.class
type IOSOSWorkgroupParallel ¶ added in v0.6.17
type IOSOSWorkgroupParallel interface {
IOSOSWorkgroup
OS_os_workgroup_parallel
}
An interface definition for the OSOSWorkgroupParallel class.
See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.class
type IOSObject ¶ added in v0.6.17
type IOSObject interface {
objectivec.IObject
}
An interface definition for the OSObject class.
type OSActivity ¶
type OSActivity = objectivec.Object
OSActivity is an object that represents an activity triggered by the user.
See: https://developer.apple.com/documentation/os/os_activity_t
func OSActivityFromID ¶ added in v0.6.17
func OSActivityFromID(id objc.ID) OSActivity
OSActivityFromID constructs a OSActivity from an objc.ID.
type OSActivityFlag ¶
type OSActivityFlag uint32
const ( // OSActivityFlagDefault: Creates a new activity and associates it as a child of any provided parent activity. OSActivityFlagDefault OSActivityFlag = 0 // OSActivityFlagDetached: Creates a new activity that is independent of any provided parent activity. OSActivityFlagDetached OSActivityFlag = 0x1 // OSActivityFlagIfNonePresent: Creates a new activity only if one is not already present. OSActivityFlagIfNonePresent OSActivityFlag = 0x2 )
func (OSActivityFlag) String ¶ added in v0.6.17
func (e OSActivityFlag) String() string
type OSActivityID ¶
type OSActivityID = uint64
OSActivityID is a number that uniquely identifies an activity.
See: https://developer.apple.com/documentation/os/os_activity_id_t
func OSActivityGetIdentifier ¶ added in v0.6.17
func OSActivityGetIdentifier(activity OSActivity, parent_id *OSActivityID) OSActivityID
OSActivityGetIdentifier retrieves the identifier for a given activity object.
See: https://developer.apple.com/documentation/os/os_activity_get_identifier
type OSActivityScopeState ¶
type OSActivityScopeState = uintptr
OSActivityScopeState is an opaque structure that contains a saved activity-execution context.
See: https://developer.apple.com/documentation/os/os_activity_scope_state_t
type OSActivityScopeStateS ¶ added in v0.6.17
type OSActivityScopeStateS struct {
Opaque [2]uint64 // Opaque data that the system uses to store the execution state.
}
OSActivityScopeStateS
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_activity_scope_state_s
type OSBlock ¶
type OSBlock = func()
OSBlock is a block that takes no arguments and returns no value.
See: https://developer.apple.com/documentation/os/os_block_t
type OSClockid ¶
type OSClockid uint32
const ( // OSClockMachAbsoluteTime: Units relative to Mach absolute time value. OSClockMachAbsoluteTime OSClockid = 32 )
type OSFunction ¶
OSFunction is a pointer to a function.
See: https://developer.apple.com/documentation/os/os_function_t
type OSLog ¶
type OSLog struct {
objectivec.Object
}
A container of related log messages.
Overview ¶
A log categorizes the messages you write and makes it easy to sort and filter them. Each log contains a subsystem and a category, which you define. A subsystem identifies a major functional area of your app, which you specify using reverse DNS notation, such as `com.Your_companyXCUIElementTypeYour_subsystem_name()`. A category segregates specific areas within a subsystem.
See: https://developer.apple.com/documentation/os/OSLog
func OSLogFromID ¶
OSLogFromID constructs a OSLog from an objc.ID.
A container of related log messages.
func (OSLog) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
type OSLogClass ¶
type OSLogClass struct {
// contains filtered or unexported fields
}
func GetOSLogClass ¶
func GetOSLogClass() OSLogClass
GetOSLogClass returns the class object for OSLog.
func (OSLogClass) Alloc ¶
func (oc OSLogClass) Alloc() OSLog
Alloc allocates memory for a new instance of the class.
func (OSLogClass) Class ¶
func (oc OSLogClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type OSLogType ¶
type OSLogType uint8
See: https://developer.apple.com/documentation/os/OSLogType
const ( // OSLogTypeDebug: The debug log level. OSLogTypeDebug OSLogType = 0x2 // OSLogTypeDefault: The default log level. OSLogTypeDefault OSLogType = 0 // OSLogTypeError: The error log level. OSLogTypeError OSLogType = 0x10 // OSLogTypeFault: The fault log level. OSLogTypeFault OSLogType = 0x11 // OSLogTypeInfo: The informational log level. OSLogTypeInfo OSLogType = 0x1 )
type OSOSWorkgroup ¶ added in v0.6.17
type OSOSWorkgroup struct {
OSObject
}
See: https://developer.apple.com/documentation/os/OS_os_workgroup
func NewOSOSWorkgroup ¶ added in v0.6.17
func NewOSOSWorkgroup() OSOSWorkgroup
NewOSOSWorkgroup creates a new OSOSWorkgroup instance.
func OSOSWorkgroupFromID ¶ added in v0.6.17
func OSOSWorkgroupFromID(id objc.ID) OSOSWorkgroup
OSOSWorkgroupFromID constructs a OSOSWorkgroup from an objc.ID.
func OS_os_workgroupFromID ¶
func OS_os_workgroupFromID(id objc.ID) OSOSWorkgroup
OS_os_workgroupFromID is an alias for OSOSWorkgroupFromID for cross-framework compatibility.
func (OSOSWorkgroup) Autorelease ¶ added in v0.6.17
func (o OSOSWorkgroup) Autorelease() OSOSWorkgroup
Autorelease adds the receiver to the current autorelease pool.
func (OSOSWorkgroup) Init ¶ added in v0.6.17
func (o OSOSWorkgroup) Init() OSOSWorkgroup
Init initializes the instance.
type OSOSWorkgroupClass ¶ added in v0.6.17
type OSOSWorkgroupClass struct {
// contains filtered or unexported fields
}
func GetOSOSWorkgroupClass ¶ added in v0.6.17
func GetOSOSWorkgroupClass() OSOSWorkgroupClass
GetOSOSWorkgroupClass returns the class object for OS_os_workgroup.
func (OSOSWorkgroupClass) Alloc ¶ added in v0.6.17
func (oc OSOSWorkgroupClass) Alloc() OSOSWorkgroup
Alloc allocates memory for a new instance of the class.
func (OSOSWorkgroupClass) Class ¶ added in v0.6.17
func (oc OSOSWorkgroupClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type OSOSWorkgroupInterval ¶ added in v0.6.17
type OSOSWorkgroupInterval struct {
OSOSWorkgroup
}
See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.class
func NewOSOSWorkgroupInterval ¶ added in v0.6.17
func NewOSOSWorkgroupInterval() OSOSWorkgroupInterval
NewOSOSWorkgroupInterval creates a new OSOSWorkgroupInterval instance.
func OSOSWorkgroupIntervalFromID ¶ added in v0.6.17
func OSOSWorkgroupIntervalFromID(id objc.ID) OSOSWorkgroupInterval
OSOSWorkgroupIntervalFromID constructs a OSOSWorkgroupInterval from an objc.ID.
func OS_os_workgroup_intervalFromID ¶
func OS_os_workgroup_intervalFromID(id objc.ID) OSOSWorkgroupInterval
OS_os_workgroup_intervalFromID is an alias for OSOSWorkgroupIntervalFromID for cross-framework compatibility.
func (OSOSWorkgroupInterval) Autorelease ¶ added in v0.6.17
func (o OSOSWorkgroupInterval) Autorelease() OSOSWorkgroupInterval
Autorelease adds the receiver to the current autorelease pool.
func (OSOSWorkgroupInterval) Init ¶ added in v0.6.17
func (o OSOSWorkgroupInterval) Init() OSOSWorkgroupInterval
Init initializes the instance.
type OSOSWorkgroupIntervalClass ¶ added in v0.6.17
type OSOSWorkgroupIntervalClass struct {
// contains filtered or unexported fields
}
func GetOSOSWorkgroupIntervalClass ¶ added in v0.6.17
func GetOSOSWorkgroupIntervalClass() OSOSWorkgroupIntervalClass
GetOSOSWorkgroupIntervalClass returns the class object for OS_os_workgroup_interval.
func (OSOSWorkgroupIntervalClass) Alloc ¶ added in v0.6.17
func (oc OSOSWorkgroupIntervalClass) Alloc() OSOSWorkgroupInterval
Alloc allocates memory for a new instance of the class.
func (OSOSWorkgroupIntervalClass) Class ¶ added in v0.6.17
func (oc OSOSWorkgroupIntervalClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type OSOSWorkgroupParallel ¶ added in v0.6.17
type OSOSWorkgroupParallel struct {
OSOSWorkgroup
}
See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.class
func NewOSOSWorkgroupParallel ¶ added in v0.6.17
func NewOSOSWorkgroupParallel() OSOSWorkgroupParallel
NewOSOSWorkgroupParallel creates a new OSOSWorkgroupParallel instance.
func OSOSWorkgroupParallelFromID ¶ added in v0.6.17
func OSOSWorkgroupParallelFromID(id objc.ID) OSOSWorkgroupParallel
OSOSWorkgroupParallelFromID constructs a OSOSWorkgroupParallel from an objc.ID.
func OS_os_workgroup_parallelFromID ¶
func OS_os_workgroup_parallelFromID(id objc.ID) OSOSWorkgroupParallel
OS_os_workgroup_parallelFromID is an alias for OSOSWorkgroupParallelFromID for cross-framework compatibility.
func (OSOSWorkgroupParallel) Autorelease ¶ added in v0.6.17
func (o OSOSWorkgroupParallel) Autorelease() OSOSWorkgroupParallel
Autorelease adds the receiver to the current autorelease pool.
func (OSOSWorkgroupParallel) Init ¶ added in v0.6.17
func (o OSOSWorkgroupParallel) Init() OSOSWorkgroupParallel
Init initializes the instance.
type OSOSWorkgroupParallelClass ¶ added in v0.6.17
type OSOSWorkgroupParallelClass struct {
// contains filtered or unexported fields
}
func GetOSOSWorkgroupParallelClass ¶ added in v0.6.17
func GetOSOSWorkgroupParallelClass() OSOSWorkgroupParallelClass
GetOSOSWorkgroupParallelClass returns the class object for OS_os_workgroup_parallel.
func (OSOSWorkgroupParallelClass) Alloc ¶ added in v0.6.17
func (oc OSOSWorkgroupParallelClass) Alloc() OSOSWorkgroupParallel
Alloc allocates memory for a new instance of the class.
func (OSOSWorkgroupParallelClass) Class ¶ added in v0.6.17
func (oc OSOSWorkgroupParallelClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type OSObject ¶ added in v0.6.17
type OSObject struct {
objectivec.Object
}
See: https://developer.apple.com/documentation/os/OS_object
func NewOSObject ¶ added in v0.6.17
func NewOSObject() OSObject
NewOSObject creates a new OSObject instance.
func OSObjectFromID ¶ added in v0.6.17
OSObjectFromID constructs a OSObject from an objc.ID.
func OS_objectFromID ¶
OS_objectFromID is an alias for OSObjectFromID for cross-framework compatibility.
func (OSObject) Autorelease ¶ added in v0.6.17
Autorelease adds the receiver to the current autorelease pool.
type OSObjectClass ¶ added in v0.6.17
type OSObjectClass struct {
// contains filtered or unexported fields
}
func GetOSObjectClass ¶ added in v0.6.17
func GetOSObjectClass() OSObjectClass
GetOSObjectClass returns the class object for OS_object.
func (OSObjectClass) Alloc ¶ added in v0.6.17
func (oc OSObjectClass) Alloc() OSObject
Alloc allocates memory for a new instance of the class.
func (OSObjectClass) Class ¶ added in v0.6.17
func (oc OSObjectClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type OSSecurityConfig ¶
type OSSecurityConfig uint64
const ( // OSSecurityConfigGuardObjects: # Discussion OSSecurityConfigGuardObjects OSSecurityConfig = 0x100 // OSSecurityConfigHardenedHeap: # Discussion OSSecurityConfigHardenedHeap OSSecurityConfig = 0x1 // OSSecurityConfigMte: # Discussion OSSecurityConfigMte OSSecurityConfig = 0x4 // OSSecurityConfigNone: # Discussion OSSecurityConfigNone OSSecurityConfig = 0 // OSSecurityConfigTpro: # Discussion OSSecurityConfigTpro OSSecurityConfig = 0x2 )
func OSSecurityConfigGet ¶ added in v0.6.17
func OSSecurityConfigGet() OSSecurityConfig
OSSecurityConfigGet.
See: https://developer.apple.com/documentation/os/os_security_config_get
func (OSSecurityConfig) String ¶ added in v0.6.17
func (e OSSecurityConfig) String() string
type OSSignpostID ¶
type OSSignpostID = uint64
OSSignpostID is an identifier you use to distinguish between signposts that have the same name and destination log.
See: https://developer.apple.com/documentation/os/os_signpost_id_t
func OSSignpostIDGenerate ¶ added in v0.6.17
func OSSignpostIDGenerate(log kernel.Os_log_t) OSSignpostID
OSSignpostIDGenerate creates a signpost identifier that’s unique among signposts logged to a specified log.
See: https://developer.apple.com/documentation/os/os_signpost_id_generate
func OSSignpostIDMakeWithPointer ¶ added in v0.6.17
func OSSignpostIDMakeWithPointer(log kernel.Os_log_t, ptr unsafe.Pointer) OSSignpostID
OSSignpostIDMakeWithPointer creates a signpost identifier that’s unique among signposts logging to the specified log, using a pointer value to generate the unique value.
See: https://developer.apple.com/documentation/os/os_signpost_id_make_with_pointer
type OSSignpostType ¶
type OSSignpostType uint8
See: https://developer.apple.com/documentation/os/OSSignpostType
const ( // OSSignpostEvent: A signpost that marks an event in your code. OSSignpostEvent OSSignpostType = 0 // OSSignpostIntervalBegin: A signpost that marks the start of a time interval of interest in your code. OSSignpostIntervalBegin OSSignpostType = 0x1 // OSSignpostIntervalEnd: A signpost that marks the end of a time interval of interest in your code. OSSignpostIntervalEnd OSSignpostType = 0x2 )
func (OSSignpostType) String ¶ added in v0.6.17
func (e OSSignpostType) String() string
type OSSyncWaitOnAddressFlags ¶
type OSSyncWaitOnAddressFlags uint32
const ( // OSSyncWaitOnAddressNone: Default behavior for futex functions that block a thread. OSSyncWaitOnAddressNone OSSyncWaitOnAddressFlags = 0 OSSyncWaitOnAddressShared OSSyncWaitOnAddressFlags = 0x1 )
func (OSSyncWaitOnAddressFlags) String ¶ added in v0.6.17
func (e OSSyncWaitOnAddressFlags) String() string
type OSSyncWakeByAddressFlags ¶
type OSSyncWakeByAddressFlags uint32
const ( // OSSyncWakeByAddressNone: The default behavior for futex functions that wake a thread. OSSyncWakeByAddressNone OSSyncWakeByAddressFlags = 0 OSSyncWakeByAddressShared OSSyncWakeByAddressFlags = 0x1 )
func (OSSyncWakeByAddressFlags) String ¶ added in v0.6.17
func (e OSSyncWakeByAddressFlags) String() string
type OSUnfairLock ¶
type OSUnfairLock = [4]byte
OSUnfairLock is a structure that contains the data for an unfair lock.
See: https://developer.apple.com/documentation/os/os_unfair_lock
type OSUnfairLockFlags ¶
type OSUnfairLockFlags uint32
const ( OSUnfairLockFlagAdaptiveSpin OSUnfairLockFlags = 0x40000 OSUnfairLockFlagNone OSUnfairLockFlags = 0 )
func (OSUnfairLockFlags) String ¶ added in v0.6.17
func (e OSUnfairLockFlags) String() string
type OSUnfairLockS ¶ added in v0.6.17
type OSUnfairLockS struct {
// contains filtered or unexported fields
}
OSUnfairLockS
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_unfair_lock_s
type OSWorkgroup ¶
type OSWorkgroup = *OSOSWorkgroup
OSWorkgroup is an opaque object representing a default workgroup in the current process.
See: https://developer.apple.com/documentation/os/os_workgroup_t
func OSWorkgroupCreateWithPort ¶ added in v0.6.17
func OSWorkgroupCreateWithPort(name string, mach_port uint32) OSWorkgroup
OSWorkgroupCreateWithPort creates a new workgroup that is bound to the workgroup with the specified Mach port.
See: https://developer.apple.com/documentation/os/os_workgroup_create_with_port
func OSWorkgroupCreateWithWorkgroup ¶ added in v0.6.17
func OSWorkgroupCreateWithWorkgroup(name string, wg OSWorkgroup) OSWorkgroup
OSWorkgroupCreateWithWorkgroup create a new workgroup that is bound to the specified workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_create_with_workgroup
type OSWorkgroupAttr ¶
type OSWorkgroupAttr = uintptr
OSWorkgroupAttr is an opaque structure for storing workgroup-related attributes.
See: https://developer.apple.com/documentation/os/os_workgroup_attr_t
type OSWorkgroupAttrOpaqueS ¶ added in v0.6.17
OSWorkgroupAttrOpaqueS
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_attr_opaque_s
type OSWorkgroupAttrS ¶
type OSWorkgroupAttrS = Os_workgroup_attr_opaque_s
See: https://developer.apple.com/documentation/os/os_workgroup_attr_s
type OSWorkgroupIndex ¶
type OSWorkgroupIndex = uint32
OSWorkgroupIndex is a unique index that the workgroup assigns to its joined threads.
See: https://developer.apple.com/documentation/os/os_workgroup_index
type OSWorkgroupInterval ¶
OSWorkgroupInterval is a workgroup object that supports the scheduling of threads on a repeating cadence.
See: https://developer.apple.com/documentation/os/os_workgroup_interval_t
type OSWorkgroupIntervalData ¶
type OSWorkgroupIntervalData = uintptr
OSWorkgroupIntervalData is an opaque structure that contains additional configuration data for the interval workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_interval_data_t
type OSWorkgroupIntervalDataOpaqueS ¶ added in v0.6.17
OSWorkgroupIntervalDataOpaqueS
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_interval_data_opaque_s
type OSWorkgroupIntervalDataS ¶
type OSWorkgroupIntervalDataS = Os_workgroup_interval_data_opaque_s
See: https://developer.apple.com/documentation/os/os_workgroup_interval_data_s
type OSWorkgroupJoinToken ¶
type OSWorkgroupJoinToken = uintptr
OSWorkgroupJoinToken is an opaque token that represents a connection between a thread and a workgroup.
See: https://developer.apple.com/documentation/os/os_workgroup_join_token_t
type OSWorkgroupJoinTokenOpaqueS ¶ added in v0.6.17
OSWorkgroupJoinTokenOpaqueS
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_join_token_opaque_s
type OSWorkgroupJoinTokenS ¶
type OSWorkgroupJoinTokenS = Os_workgroup_join_token_opaque_s
See: https://developer.apple.com/documentation/os/os_workgroup_join_token_s
type OSWorkgroupMptAttr ¶
type OSWorkgroupMptAttr = uintptr
OSWorkgroupMptAttr is an opaque structure containing attributes related to a request for the maximum number of parallel threads.
See: https://developer.apple.com/documentation/os/os_workgroup_mpt_attr_t
type OSWorkgroupMptAttrS ¶
See: https://developer.apple.com/documentation/os/os_workgroup_mpt_attr_s OSWorkgroupMptAttrS is an unresolved C aggregate typedef.
type OSWorkgroupParallel ¶
OSWorkgroupParallel is a workgroup object that supports the scheduling of threads that work in parallel to complete a task.
See: https://developer.apple.com/documentation/os/os_workgroup_parallel_t
func OSWorkgroupParallelCreate ¶ added in v0.6.17
func OSWorkgroupParallelCreate(name string, attr OSWorkgroupAttr) OSWorkgroupParallel
OSWorkgroupParallelCreate creates a new workgroup that manges threads working on a single task in parallel.
See: https://developer.apple.com/documentation/os/os_workgroup_parallel_create
type OSWorkgroupWorkingArenaDestructor ¶
OSWorkgroupWorkingArenaDestructor is a function that deallocates a workgroup’s currently assigned shared memory.
See: https://developer.apple.com/documentation/os/os_workgroup_working_arena_destructor_t
type OS_os_activity ¶
type OS_os_activity interface {
objectivec.IObject
}
OS_os_activity protocol.
See: https://developer.apple.com/documentation/os/OS_os_activity
type OS_os_activityObject ¶
type OS_os_activityObject struct {
objectivec.Object
}
OS_os_activityObject wraps an existing Objective-C object that conforms to the OS_os_activity protocol.
func OS_os_activityObjectFromID ¶
func OS_os_activityObjectFromID(id objc.ID) OS_os_activityObject
OS_os_activityObjectFromID constructs a OS_os_activityObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_os_activityObject) BaseObject ¶
func (o OS_os_activityObject) BaseObject() objectivec.Object
type OS_os_logObject ¶
type OS_os_logObject struct {
objectivec.Object
}
OS_os_logObject wraps an existing Objective-C object that conforms to the OS_os_log protocol.
func OS_os_logObjectFromID ¶
func OS_os_logObjectFromID(id objc.ID) OS_os_logObject
OS_os_logObjectFromID constructs a OS_os_logObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_os_logObject) BaseObject ¶
func (o OS_os_logObject) BaseObject() objectivec.Object
type OS_os_workgroup_interval ¶
type OS_os_workgroup_interval interface {
objectivec.IObject
}
OS_os_workgroup_interval protocol.
See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.protocol
type OS_os_workgroup_intervalObject ¶ added in v0.6.17
type OS_os_workgroup_intervalObject struct {
objectivec.Object
}
OS_os_workgroup_intervalObject wraps an existing Objective-C object that conforms to the OS_os_workgroup_interval protocol.
func OS_os_workgroup_intervalObjectFromID ¶ added in v0.6.17
func OS_os_workgroup_intervalObjectFromID(id objc.ID) OS_os_workgroup_intervalObject
OS_os_workgroup_intervalObjectFromID constructs a OS_os_workgroup_intervalObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_os_workgroup_intervalObject) BaseObject ¶ added in v0.6.17
func (o OS_os_workgroup_intervalObject) BaseObject() objectivec.Object
type OS_os_workgroup_parallel ¶
type OS_os_workgroup_parallel interface {
objectivec.IObject
}
OS_os_workgroup_parallel protocol.
See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.protocol
type OS_os_workgroup_parallelObject ¶ added in v0.6.17
type OS_os_workgroup_parallelObject struct {
objectivec.Object
}
OS_os_workgroup_parallelObject wraps an existing Objective-C object that conforms to the OS_os_workgroup_parallel protocol.
func OS_os_workgroup_parallelObjectFromID ¶ added in v0.6.17
func OS_os_workgroup_parallelObjectFromID(id objc.ID) OS_os_workgroup_parallelObject
OS_os_workgroup_parallelObjectFromID constructs a OS_os_workgroup_parallelObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (OS_os_workgroup_parallelObject) BaseObject ¶ added in v0.6.17
func (o OS_os_workgroup_parallelObject) BaseObject() objectivec.Object
type Os_activity_flag_t ¶
type Os_activity_flag_t = OSActivityFlag
Os_activity_flag_t is a C-name alias for OSActivityFlag.
type Os_activity_id_t ¶
type Os_activity_id_t = OSActivityID
Os_activity_id_t is a C-name alias for OSActivityID.
type Os_activity_scope_state_s ¶
type Os_activity_scope_state_s = OSActivityScopeStateS
Os_activity_scope_state_s is a type alias for OSActivityScopeStateS for use in objc.Send[T] calls.
type Os_activity_scope_state_t ¶
type Os_activity_scope_state_t = OSActivityScopeState
Os_activity_scope_state_t is a C-name alias for OSActivityScopeState.
type Os_activity_t ¶
type Os_activity_t = OSActivity
Os_activity_t is a C-name alias for OSActivity.
type Os_function_t ¶
type Os_function_t = OSFunction
Os_function_t is a C-name alias for OSFunction.
type Os_security_config_t ¶
type Os_security_config_t = OSSecurityConfig
Os_security_config_t is a C-name alias for OSSecurityConfig.
type Os_signpost_id_t ¶
type Os_signpost_id_t = OSSignpostID
Os_signpost_id_t is a C-name alias for OSSignpostID.
type Os_signpost_type_t ¶
type Os_signpost_type_t = OSSignpostType
Os_signpost_type_t is a C-name alias for OSSignpostType.
type Os_sync_wait_on_address_flags_t ¶
type Os_sync_wait_on_address_flags_t = OSSyncWaitOnAddressFlags
Os_sync_wait_on_address_flags_t is a C-name alias for OSSyncWaitOnAddressFlags.
type Os_sync_wake_by_address_flags_t ¶
type Os_sync_wake_by_address_flags_t = OSSyncWakeByAddressFlags
Os_sync_wake_by_address_flags_t is a C-name alias for OSSyncWakeByAddressFlags.
type Os_unfair_lock ¶ added in v0.6.17
type Os_unfair_lock = OSUnfairLock
Os_unfair_lock is a C-name alias for OSUnfairLock.
type Os_unfair_lock_flags_t ¶
type Os_unfair_lock_flags_t = OSUnfairLockFlags
Os_unfair_lock_flags_t is a C-name alias for OSUnfairLockFlags.
type Os_unfair_lock_s ¶ added in v0.6.17
type Os_unfair_lock_s = OSUnfairLockS
Os_unfair_lock_s is a type alias for OSUnfairLockS for use in objc.Send[T] calls.
type Os_workgroup_attr_opaque_s ¶
type Os_workgroup_attr_opaque_s = OSWorkgroupAttrOpaqueS
Os_workgroup_attr_opaque_s is a type alias for OSWorkgroupAttrOpaqueS for use in objc.Send[T] calls.
type Os_workgroup_attr_s ¶
type Os_workgroup_attr_s = OSWorkgroupAttrS
Os_workgroup_attr_s is a C-name alias for OSWorkgroupAttrS.
type Os_workgroup_attr_t ¶
type Os_workgroup_attr_t = OSWorkgroupAttr
Os_workgroup_attr_t is a C-name alias for OSWorkgroupAttr.
type Os_workgroup_index ¶
type Os_workgroup_index = OSWorkgroupIndex
Os_workgroup_index is a C-name alias for OSWorkgroupIndex.
type Os_workgroup_interval_data_opaque_s ¶
type Os_workgroup_interval_data_opaque_s = OSWorkgroupIntervalDataOpaqueS
Os_workgroup_interval_data_opaque_s is a type alias for OSWorkgroupIntervalDataOpaqueS for use in objc.Send[T] calls.
type Os_workgroup_interval_data_s ¶
type Os_workgroup_interval_data_s = OSWorkgroupIntervalDataS
Os_workgroup_interval_data_s is a C-name alias for OSWorkgroupIntervalDataS.
type Os_workgroup_interval_data_t ¶
type Os_workgroup_interval_data_t = OSWorkgroupIntervalData
Os_workgroup_interval_data_t is a C-name alias for OSWorkgroupIntervalData.
type Os_workgroup_interval_t ¶
type Os_workgroup_interval_t = OSWorkgroupInterval
Os_workgroup_interval_t is a C-name alias for OSWorkgroupInterval.
type Os_workgroup_join_token_opaque_s ¶
type Os_workgroup_join_token_opaque_s = OSWorkgroupJoinTokenOpaqueS
Os_workgroup_join_token_opaque_s is a type alias for OSWorkgroupJoinTokenOpaqueS for use in objc.Send[T] calls.
type Os_workgroup_join_token_s ¶
type Os_workgroup_join_token_s = OSWorkgroupJoinTokenS
Os_workgroup_join_token_s is a C-name alias for OSWorkgroupJoinTokenS.
type Os_workgroup_join_token_t ¶
type Os_workgroup_join_token_t = OSWorkgroupJoinToken
Os_workgroup_join_token_t is a C-name alias for OSWorkgroupJoinToken.
type Os_workgroup_mpt_attr_s ¶
type Os_workgroup_mpt_attr_s = OSWorkgroupMptAttrS
Os_workgroup_mpt_attr_s is a C-name alias for OSWorkgroupMptAttrS.
type Os_workgroup_mpt_attr_t ¶
type Os_workgroup_mpt_attr_t = OSWorkgroupMptAttr
Os_workgroup_mpt_attr_t is a C-name alias for OSWorkgroupMptAttr.
type Os_workgroup_parallel_t ¶
type Os_workgroup_parallel_t = OSWorkgroupParallel
Os_workgroup_parallel_t is a C-name alias for OSWorkgroupParallel.
type Os_workgroup_t ¶
type Os_workgroup_t = OSWorkgroup
Os_workgroup_t is a C-name alias for OSWorkgroup.
type Os_workgroup_working_arena_destructor_t ¶
type Os_workgroup_working_arena_destructor_t = OSWorkgroupWorkingArenaDestructor
Os_workgroup_working_arena_destructor_t is a C-name alias for OSWorkgroupWorkingArenaDestructor.
Source Files
¶
- blocks.gen.go
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- os_log.gen.go
- os_object.gen.go
- os_os_activity_protocol.gen.go
- os_os_log_protocol.gen.go
- os_os_workgroup.gen.go
- os_os_workgroup_interval.gen.go
- os_os_workgroup_interval_protocol.gen.go
- os_os_workgroup_parallel.gen.go
- os_os_workgroup_parallel_protocol.gen.go
- typedefs.gen.go
- types.gen.go
- undefined_types.gen.go