Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.3
[deb_dpdk.git]
/
examples
/
performance-thread
/
common
/
lthread_api.h
diff --git
a/examples/performance-thread/common/lthread_api.h
b/examples/performance-thread/common/lthread_api.h
index
ec97610
..
a74680b
100644
(file)
--- a/
examples/performance-thread/common/lthread_api.h
+++ b/
examples/performance-thread/common/lthread_api.h
@@
-124,6
+124,10
@@
#ifndef LTHREAD_H
#define LTHREAD_H
#ifndef LTHREAD_H
#define LTHREAD_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/socket.h>
#include <fcntl.h>
@@
-139,7
+143,7
@@
struct lthread_mutex;
struct lthread_condattr;
struct lthread_mutexattr;
struct lthread_condattr;
struct lthread_mutexattr;
-typedef void (*lthread_func_t) (void *);
+typedef void
*
(*lthread_func_t) (void *);
/*
* Define the size of stack for an lthread
/*
* Define the size of stack for an lthread
@@
-829,4
+833,8
@@
int lthread_cond_signal(struct lthread_cond *c);
*/
int lthread_cond_broadcast(struct lthread_cond *c);
*/
int lthread_cond_broadcast(struct lthread_cond *c);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTHREAD_H */
#endif /* LTHREAD_H */