Go to the documentation of this file.
5 #ifndef _RTE_PER_LCORE_H_
6 #define _RTE_PER_LCORE_H_
21 #ifdef RTE_TOOLCHAIN_MSVC
22 #define RTE_DEFINE_PER_LCORE(type, name) \
23 __declspec(thread) type per_lcore_##name
25 #define RTE_DECLARE_PER_LCORE(type, name) \
26 extern __declspec(thread) type per_lcore_##name
33 #define RTE_DEFINE_PER_LCORE(type, name) \
34 __thread type per_lcore_##name
39 #define RTE_DECLARE_PER_LCORE(type, name) \
40 extern __thread type per_lcore_##name
46 #define RTE_PER_LCORE(name) (per_lcore_##name)