summaryrefslogtreecommitdiffstats
path: root/src/trex_watchdog.h
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-12-25 15:30:38 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-12-25 15:30:38 +0200
commitf5350dfb9a746c9c70e2b7dcc879ac474ac6d3e0 (patch)
treea56559bfbff686ebb5c261521df66a6357f1d70a /src/trex_watchdog.h
parent7c25e2016ae0ce0991f21bc1e4c60d071db3e452 (diff)
Disable watchdog for 5 seconds at Mellanox link up/down command
Change-Id: If19c9c0d3e5d684e6157ab5c71a927e2e89b8211 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'src/trex_watchdog.h')
-rw-r--r--src/trex_watchdog.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/trex_watchdog.h b/src/trex_watchdog.h
index f5ea5da2..390b565c 100644
--- a/src/trex_watchdog.h
+++ b/src/trex_watchdog.h
@@ -168,7 +168,14 @@ public:
}
void init(bool enable);
-
+
+ /**
+ * get monitor of current thread if registered
+ * (NULL if not registered)
+ *
+ */
+ TrexMonitor * get_current_monitor();
+
/**
* add a monitor to the watchdog
* from now on this monitor will be watched