diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-01 02:48:04 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-01 02:48:04 +0200 |
commit | a56ae96bdbfe53894aad17192cd21d43c6e8a289 (patch) | |
tree | 9118f3caecc520e5f1094836bcd016b137754291 /src/trex_watchdog.cpp | |
parent | f819379b4a6c08270651b381118f0282c4163792 (diff) |
alter the watchdog timeout before push_remote and after, due to possible long io
Change-Id: Ibddf830dbed8ee36c75113267645a576e38efa31
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'src/trex_watchdog.cpp')
-rw-r--r-- | src/trex_watchdog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/trex_watchdog.cpp b/src/trex_watchdog.cpp index d2b6b803..8a06746b 100644 --- a/src/trex_watchdog.cpp +++ b/src/trex_watchdog.cpp @@ -155,16 +155,14 @@ void TrexWatchDog::init(bool enable){ * */ TrexMonitor * TrexWatchDog::get_current_monitor() { - TrexMonitor * cur_monitor = NULL; for (int i = 0; i < m_mon_count; i++) { if ( m_monitors[i]->get_tid() == pthread_self() ) { - cur_monitor = m_monitors[i]; - break; + return m_monitors[i]; } } - return cur_monitor; + return NULL; } |