Edit

Share via


DispatchSource.MachSend Constructors

Definition

Overloads

DispatchSource.MachSend(IntPtr)
DispatchSource.MachSend(IntPtr, Boolean)
DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

Creates a dispatch source that monitors the specified mach port for send right state changes.

DispatchSource.MachSend(IntPtr)

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

Parameters

handle
IntPtr

nativeint

Applies to

DispatchSource.MachSend(IntPtr, Boolean)

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

Parameters

handle
IntPtr

nativeint

owns
Boolean

Applies to

DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

Creates a dispatch source that monitors the specified mach port for send right state changes.

public MachSend (int machPort, bool sendDead = false, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MachSend : int * bool * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MachSend

Parameters

machPort
Int32

The mach port

sendDead
Boolean

If set to true, this will also post a notification when the port’s corresponding receive right has been destroyed.

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

You can use the SendRightsDestroyed property to determine whether the handler was invoked due to the corresponding receive right being destroyed, or if it is a regular state change.

Applies to