diff options
author | imarom <imarom@cisco.com> | 2015-11-19 12:35:16 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-19 12:35:16 +0200 |
commit | a7317d45787669af71ca8c65fd1e51f8a47d2c1e (patch) | |
tree | 2ba3d71c3b9e9815f5b9d6bcc63fe496e19ce8b3 /src/stateless/dp/trex_stateless_dp_core.h | |
parent | d9ed62e91c83039521b817779b4bc0197cc8151a (diff) |
async events (DP to CP)
Diffstat (limited to 'src/stateless/dp/trex_stateless_dp_core.h')
-rw-r--r-- | src/stateless/dp/trex_stateless_dp_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.h b/src/stateless/dp/trex_stateless_dp_core.h index aaa6eed3..d07e1d3a 100644 --- a/src/stateless/dp/trex_stateless_dp_core.h +++ b/src/stateless/dp/trex_stateless_dp_core.h @@ -112,6 +112,14 @@ public: /* quit the main loop, work in both stateless in stateful, don't free memory trigger from master */ void quit_main_loop(); + void set_event_id(int event_id) { + m_event_id = event_id; + } + + int get_event_id() { + return m_event_id; + } + private: /** * in idle state loop, the processor most of the time sleeps @@ -152,6 +160,7 @@ private: CFlowGenListPerThread *m_core; double m_duration; + int m_event_id; }; #endif /* __TREX_STATELESS_DP_CORE_H__ */ |