Subsystem.ResetTriggers Method (MF_EVENT_KIND, Subsystem.TriggerKinds)

This method resets the specified triggers so that they do not happen for the specified kind of event (eventKind). Parameter triggers contains one or more of the flag enumerators from enumeration TriggerKinds specifying the triggers to be reset for this kind of event. If the Subsystem is not started, this method throws an exception of type wRTOSException containing an explanatory error message. This method can be called when monitoring is stopped or started. It takes effect immediately. If any of the specified triggers are already reset, they remain reset. Triggers do not persist after the wRTOS Subsystem stops. If persistence is desired, it is the client's responsibility to save trigger state before the Subsystem stops and to restore it when the Subsystem starts. This method is thread-safe and executes atomically across all processes with respect to all other trigger-related methods.

Session triggers set programmatically from monitor event MF_EVENT_KIND_CUSTOM are ignored.

The following kinds of monitoring events cannot have triggers set on them. Attempting to do so will cause an exception of type wRTOSException to be thrown:

Namespace:  IntervalZero.MaxRT.wRTOS.Monitor
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.0)

Syntax

Copy
public void ResetTriggers(
    MF_EVENT_KIND eventKind,
    Subsystem.TriggerKinds triggers
)

Parameters

eventKind

Type: IntervalZero.MaxRT.wRTOS.Monitor.MF_EVENT_KIND

triggers

Type: IntervalZero.MaxRT.wRTOS.Monitor.Subsystem.TriggerKinds

Implements

IMonitorSubsystem.ResetTriggers (MF_EVENT_KIND, Subsystem.TriggerKinds)

Exceptions

Exception Condition

wRTOSException

Thrown if this method is used without the wRTOS Runtime installed.

See Also: