RtResetWatchdog

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

Syntax

Copy
BOOL RtResetWatchdog(
    KAFFINITY affinity
);

Parameters

affinity

An affinity mask that specifies the Process core(s) on which the watchdog timer counter will be reset.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.. To get extended error information, call GetLastError.

Possible error codes:

Error Code Meaning
ERROR_NOT_SUPPORTED Monitor for runaway threads is disabled.

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 Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: