Share via


CFMachPort Class

Definition

Basic access to the underlying operating system Mach Port and integration with run loops.

public class CFMachPort : CoreFoundation.NativeObject
type CFMachPort = class
    inherit NativeObject
Inheritance

Remarks

The main use is to integrate Mach Ports into a CFRunLoop. Use the CreateRunLoopSource() to create a CFRunLoopSource that can then be added into the CFRunLoop.

Properties

Name Description
Handle (Inherited from DisposableObject)
IsValid

Gets a value that tells whether the port can send and receive messages.

MachPort

Gets the pointer to the wrapped Mach port instance.

Owns (Inherited from DisposableObject)

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
CreateRunLoopSource()

Creates the run loop source for the Mach port.

Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Invalidate()

Stops the Mach port from sending or receiving messages, but does not destroy it.

Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to