class WatchdogInterface

Defined at line 103 of file ../../src/storage/lib/watchdog/watchdog.h

WatchdogInterface class provides a structure to disable watchdog at almost zero

cost. This is also used to avoid ifdefs for host-side/target-side code.

Public Methods

zx::result<> Start ()

Spins up a thread and prepares the watchdog to track operations.

zx::result<> ShutDown ()

Shuts down the watchdog. It is callers responsibility to ensure that all

operations are untracked. Shutdown asserts that there are no tracked

operations.

zx::result<> Track (OperationTracker * tracker)

Starts tracking the operation |tracker|. |tracker| is unowned. |tracker| is

expected to live at least till it is removed.

zx::result<> Untrack (OperationTrackerId tracker_id)

Untrack the operation represented by |tracker_id|.

void ~WatchdogInterface ()

Defined at line 120 of file ../../src/storage/lib/watchdog/watchdog.h