Edit

Share via


DispatchSource.SignalMonitor Class

Definition

Sources of this type monitor signals delivered to the current process.

public class DispatchSource.SignalMonitor : CoreFoundation.DispatchSource
type DispatchSource.SignalMonitor = class
    inherit DispatchSource
Inheritance
DispatchSource.SignalMonitor
Inheritance
DispatchSource.SignalMonitor

Remarks

Unlike signal handlers specified via sigaction(), the execution of the event handler block does not interrupt the current thread of execution; therefore the handler block is not limited to the use of signal safe interfaces defined in sigaction(2).  Furthermore, multiple observers of a given signal are supported; thus allowing applications and libraries to cooperate safely. However, a dispatch source does not install a signal handler or otherwise alter the behavior of signal delivery.  Therefore, applications must ignore or at least catch any signal that terminates a process by default.

Constructors

DispatchSource.SignalMonitor(Int32, DispatchQueue)

Creates a process signal monitor

DispatchSource.SignalMonitor(IntPtr, Boolean)
DispatchSource.SignalMonitor(IntPtr)

Properties

Handle (Inherited from DispatchObject)
IsCanceled

Determine whether the specified source has been canceled.

(Inherited from DispatchSource)
SignalNumber
SignalsDelivered

The number of signals received since the last invocation of the event handler.

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