CFMachPort Class

Definition

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

public class CFMachPort : IDisposable, ObjCRuntime.INativeObject
type CFMachPort = class
    interface INativeObject
    interface IDisposable
Inheritance
CFMachPort
Implements

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.

Constructors

CFMachPort(IntPtr, Boolean)
CFMachPort(IntPtr)

Properties

Handle

Handle (pointer) to the unmanaged object representation.

IsValid

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

MachPort

Gets the pointer to the wrapped Mach port instance.

Methods

CreateRunLoopSource()

Creates the run loop source for the Mach port.

Dispose()

Releases the resources used by the CFMachPort object.

Dispose(Boolean)

Releases the resources used by the CFMachPort object.

Finalize()

Finalizer for the CFMachPort object

Invalidate()

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

Applies to