CFMachPort Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |
CFMachPort(IntPtr, Boolean) |
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. |