diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-07-15 18:10:00 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-07-15 18:10:00 +0300 |
commit | cda0871f0c79a4f742850f66f9e06afb5850e2dc (patch) | |
tree | b4bcf1111e3c9961659c3dc3a6024550c3d1e93a /src/trex_watchdog.h | |
parent | 1b6c970a70c0fcf8b7599877ecb9ceb31e261fed (diff) |
fix wd struct alignment issue
Diffstat (limited to 'src/trex_watchdog.h')
-rw-r--r-- | src/trex_watchdog.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/trex_watchdog.h b/src/trex_watchdog.h index 1c948d56..af9a3993 100644 --- a/src/trex_watchdog.h +++ b/src/trex_watchdog.h @@ -117,15 +117,12 @@ private: /* write fields are first */ volatile bool m_active; volatile bool m_tickled; - dsec_t m_ts; - int m_handle; + dsec_t m_ts; double m_timeout_sec; pthread_t m_tid; std::string m_name; - /* for for a full cacheline */ - uint8_t pad[15]; } __rte_cache_aligned; @@ -203,6 +200,5 @@ private: static bool g_signal_init; }; -static_assert(sizeof(TrexMonitor) == RTE_CACHE_LINE_SIZE, "sizeof(TrexMonitor) != RTE_CACHE_LINE_SIZE" ); #endif /* __TREX_WATCHDOG_H__ */ |