Edit

Share via


DispatchSource.MachReceive Constructors

Definition

Overloads

DispatchSource.MachReceive(IntPtr)
DispatchSource.MachReceive(Int32, DispatchQueue)

Creates a dispatch source that monitors the specified mach port for message availability.

DispatchSource.MachReceive(IntPtr, Boolean)

DispatchSource.MachReceive(IntPtr)

public MachReceive (IntPtr handle);
new CoreFoundation.DispatchSource.MachReceive : nativeint -> CoreFoundation.DispatchSource.MachReceive

Parameters

handle
IntPtr

nativeint

Applies to

DispatchSource.MachReceive(Int32, DispatchQueue)

Creates a dispatch source that monitors the specified mach port for message availability.

public MachReceive (int machPort, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MachReceive : int * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MachReceive

Parameters

machPort
Int32

Mach port to monitor for incoming data.

queue
DispatchQueue

The target queue for this dispatch source object.   Pass null to use the default target queue (the default priority global concurrent queue).

Remarks

Applies to

DispatchSource.MachReceive(IntPtr, Boolean)

public MachReceive (IntPtr handle, bool owns);
new CoreFoundation.DispatchSource.MachReceive : nativeint * bool -> CoreFoundation.DispatchSource.MachReceive

Parameters

handle
IntPtr

nativeint

owns
Boolean

Applies to