DispatchSource.MachSend Class

Definition

Dispatch sources of this type monitors a mach port with a send right for state changes.

public class DispatchSource.MachSend : CoreFoundation.DispatchSource.Mach
type DispatchSource.MachSend = class
    inherit DispatchSource.Mach
Inheritance
Inheritance

Remarks

You can use this DispatchSource to monitor both send right state changes as well as the destruction of the corresponding port’s receiver rights.

Constructors

DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

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

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

Properties

Handle (Inherited from DispatchObject)
IsCanceled

Determine whether the specified source has been canceled.

(Inherited from DispatchSource)
MachPort

The MachPort that this DispatchSource is monitoring.

(Inherited from DispatchSource.Mach)
SendRightsDestroyed

Determines if the handler was invoked due to a send right being destroyed.

Methods

Activate() (Inherited from DispatchObject)
Cancel()

Asynchronously cancels the dispatch source.

(Inherited from DispatchSource)
Check()
Obsolete.
(Inherited from DispatchObject)
Dispose() (Inherited from DispatchObject)
Dispose(Boolean)

Releases the resources used by the DispatchSource object.

(Inherited from DispatchSource)
Equals(Object) (Inherited from DispatchObject)
GetHashCode()

Returns the hashcode for this object

(Inherited from DispatchObject)
InitializeHandle(IntPtr) (Inherited from NativeObject)
Release() (Inherited from DispatchObject)
Resume()

Resumes the dispatch source.

(Inherited from DispatchSource)
Retain() (Inherited from DispatchObject)
SetCancelHandler(Action)

Provides a cancellation handler

(Inherited from DispatchSource)
SetEventHandler(Action)

Specified a handler to execute when events are received on the dispatch source.

(Inherited from DispatchSource)
SetRegistrationHandler(Action)

Provides a registration handler

(Inherited from DispatchSource)
SetTargetQueue(DispatchQueue) (Inherited from DispatchObject)
Suspend()

Suspends the dispatch source.

(Inherited from DispatchSource)

Applies to