diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-05-08 13:50:57 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-05-08 13:50:57 +0300 |
commit | c2912dfc5ad81e2edcf77b7ee992f92216ed0bad (patch) | |
tree | 4676234974ed4de8c804047b2e4463b893518932 /src/utl_cpuu.h | |
parent | f27bfbab72f9221b221a7f36f4063e9ff8e9d307 (diff) |
add cache capability to stateless node object
Diffstat (limited to 'src/utl_cpuu.h')
-rwxr-xr-x | src/utl_cpuu.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utl_cpuu.h b/src/utl_cpuu.h index e7bb50bb..bb3fe67c 100755 --- a/src/utl_cpuu.h +++ b/src/utl_cpuu.h @@ -32,6 +32,14 @@ public: m_total_cycles=0; m_data=0; } + inline void start_work1(){ + m_data=1; + + } + inline void commit1(){ + m_data=0; + } + inline void start_work(){ m_data=os_get_hr_tick_64(); } @@ -50,7 +58,7 @@ public: private: uint64_t m_total_cycles; - uint64_t m_data; + uint8_t m_data; } __rte_cache_aligned; |