Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1b6c970
)
fix wd struct alignment issue
author
Hanoh Haim
<
[email protected]
>
Fri, 15 Jul 2016 15:10:00 +0000
(18:10 +0300)
committer
Hanoh Haim
<
[email protected]
>
Fri, 15 Jul 2016 15:10:00 +0000
(18:10 +0300)
src/trex_watchdog.h
patch
|
blob
|
history
diff --git
a/src/trex_watchdog.h
b/src/trex_watchdog.h
index
1c948d5
..
af9a399
100644
(file)
--- 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__ */