RtResetWatchdog

RtResetWatchdog resets the watchdog timer counter on the specified RTSS core(s).

NOTE: This function is only supported in the RTSS environment. It cannot be called from a Windows application linked to RTX64.

Syntax

BOOL RtResetWatchdog(
    KAFFINITY affinity
);

Parameters

affinity

Affinity mask that specifies the RTSS core(s) on which the watchdog timer counter will be reset. See Specifying a Processor Affinity Bitmask for more information.

Return Value

TRUE if the function succeeds, FALSE if the function fails. To get extended error information, call GetLastError.

Possible error codes:

Error Code Meaning
ERROR_NOT_SUPPORTED Monitor for runaway threads is disabled in the Control Panel.

Remarks

RtResetWatchdog should be called in a higher priority thread than the potential timeout-causing thread, or on a free core. See Runaway Thread Management for more information on the use of the watchdog timer.

RtResetWatchdog returns ERROR_NOT_SUPPORTED if called when watchdog expiration is disabled.

Requirements

Minimum Supported Version RTX64 3.5
Header Rtapi.h
Library Rtx_Rtss.lib (RTSS)

See Also:

Runaway Thread Management