git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/net: remove duplicate includes
[dpdk.git]
/
examples
/
performance-thread
/
common
/
lthread_int.h
diff --git
a/examples/performance-thread/common/lthread_int.h
b/examples/performance-thread/common/lthread_int.h
index
b858b55
..
3f7fb92
100644
(file)
--- a/
examples/performance-thread/common/lthread_int.h
+++ b/
examples/performance-thread/common/lthread_int.h
@@
-62,6
+62,10
@@
#include <lthread_api.h>
#define LTHREAD_INT_H
#include <lthread_api.h>
#define LTHREAD_INT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
@@
-69,10
+73,10
@@
#include <pthread.h>
#include <time.h>
#include <pthread.h>
#include <time.h>
+#include <rte_memory.h>
#include <rte_cycles.h>
#include <rte_per_lcore.h>
#include <rte_timer.h>
#include <rte_cycles.h>
#include <rte_per_lcore.h>
#include <rte_timer.h>
-#include <rte_ring.h>
#include <rte_atomic_64.h>
#include <rte_spinlock.h>
#include <ctx.h>
#include <rte_atomic_64.h>
#include <rte_spinlock.h>
#include <ctx.h>
@@
-197,4
+201,8
@@
struct lthread {
uint64_t diag_ref; /* ref to user diag data */
} __rte_cache_aligned;
uint64_t diag_ref; /* ref to user diag data */
} __rte_cache_aligned;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTHREAD_INT_H */
#endif /* LTHREAD_INT_H */