DPDK 21.11.9
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
20extern "C" {
21#endif
22
26typedef struct eal_tls_key *rte_thread_key;
27
28#ifdef RTE_HAS_CPUSET
29
39int rte_thread_set_affinity(rte_cpuset_t *cpusetp);
40
49void rte_thread_get_affinity(rte_cpuset_t *cpusetp);
50
51#endif /* RTE_HAS_CPUSET */
52
71__rte_experimental
73 void (*destructor)(void *));
74
87__rte_experimental
89
104__rte_experimental
105int rte_thread_value_set(rte_thread_key key, const void *value);
106
119__rte_experimental
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif /* _RTE_THREAD_H_ */
struct eal_tls_key * rte_thread_key
Definition: rte_thread.h:26
__rte_experimental void * rte_thread_value_get(rte_thread_key key)
void rte_thread_get_affinity(rte_cpuset_t *cpusetp)
__rte_experimental int rte_thread_value_set(rte_thread_key key, const void *value)
__rte_experimental int rte_thread_key_delete(rte_thread_key key)
__rte_experimental int rte_thread_key_create(rte_thread_key *key, void(*destructor)(void *))
int rte_thread_set_affinity(rte_cpuset_t *cpusetp)