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
use macro to declare constructor functions
[dpdk.git]
/
examples
/
performance-thread
/
common
/
lthread_tls.c
diff --git
a/examples/performance-thread/common/lthread_tls.c
b/examples/performance-thread/common/lthread_tls.c
index
56f0c2f
..
2259fad
100644
(file)
--- a/
examples/performance-thread/common/lthread_tls.c
+++ b/
examples/performance-thread/common/lthread_tls.c
@@
-62,9
+62,7
@@
RTE_DEFINE_PER_LTHREAD(void *, dummy);
static struct lthread_key key_table[LTHREAD_MAX_KEYS];
-void lthread_tls_ctor(void) __attribute__((constructor));
-
-void lthread_tls_ctor(void)
+RTE_INIT(thread_tls_ctor)
{
key_pool = NULL;
key_pool_init = 0;