From c2912dfc5ad81e2edcf77b7ee992f92216ed0bad Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 8 May 2016 13:50:57 +0300 Subject: add cache capability to stateless node object --- src/utl_cpuu.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/utl_cpuu.h') 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; -- cgit 1.2.3-korg