DPDK  21.02.0
rte_thread.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Mellanox Technologies, Ltd
3  */
4 
5 #include <rte_os.h>
6 #include <rte_compat.h>
7 
8 #ifndef _RTE_THREAD_H_
9 #define _RTE_THREAD_H_
10 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
26 typedef struct eal_tls_key *rte_tls_key;
27 
37 int rte_thread_set_affinity(rte_cpuset_t *cpusetp);
38 
47 void rte_thread_get_affinity(rte_cpuset_t *cpusetp);
48 
65 __rte_experimental
66 int rte_thread_tls_key_create(rte_tls_key *key, void (*destructor)(void *));
67 
78 __rte_experimental
79 int rte_thread_tls_key_delete(rte_tls_key key);
80 
93 __rte_experimental
94 int rte_thread_tls_value_set(rte_tls_key key, const void *value);
95 
106 __rte_experimental
107 void *rte_thread_tls_value_get(rte_tls_key key);
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* _RTE_THREAD_H_ */
__rte_experimental int rte_thread_tls_key_create(rte_tls_key *key, void(*destructor)(void *))
__rte_experimental int rte_thread_tls_key_delete(rte_tls_key key)
__rte_experimental void * rte_thread_tls_value_get(rte_tls_key key)
struct eal_tls_key * rte_tls_key
Definition: rte_thread.h:26
int rte_thread_set_affinity(rte_cpuset_t *cpusetp)
void rte_thread_get_affinity(rte_cpuset_t *cpusetp)
__rte_experimental int rte_thread_tls_value_set(rte_tls_key key, const void *value)