9 #include <rte_compat.h> 11 #ifndef _RTE_THREAD_H_ 12 #define _RTE_THREAD_H_ 27 #define RTE_THREAD_NAME_SIZE 16 29 #define RTE_MAX_THREAD_NAME_LEN RTE_THREAD_NAME_SIZE 32 #define RTE_THREAD_INTERNAL_PREFIX "dpdk-" 34 #define RTE_THREAD_INTERNAL_NAME_SIZE 11 277 #ifdef RTE_HAS_CPUSET 294 rte_cpuset_t *cpuset);
311 rte_cpuset_t *cpuset);
328 const rte_cpuset_t *cpuset);
345 rte_cpuset_t *cpuset);
420 void (*destructor)(
void *));
void rte_thread_set_name(rte_thread_t thread_id, const char *thread_name)
void * rte_thread_value_get(rte_thread_key key)
int rte_thread_value_set(rte_thread_key key, const void *value)
int rte_thread_equal(rte_thread_t t1, rte_thread_t t2)
__rte_internal int rte_thread_create_internal_control(rte_thread_t *id, const char *name, rte_thread_func func, void *arg)
int rte_thread_attr_set_priority(rte_thread_attr_t *thread_attr, enum rte_thread_priority priority)
int rte_thread_join(rte_thread_t thread_id, uint32_t *value_ptr)
int rte_thread_attr_set_affinity(rte_thread_attr_t *thread_attr, rte_cpuset_t *cpuset)
int rte_thread_set_priority(rte_thread_t thread_id, enum rte_thread_priority priority)
__rte_internal void rte_thread_set_prefixed_name(rte_thread_t id, const char *name)
int rte_thread_create(rte_thread_t *thread_id, const rte_thread_attr_t *thread_attr, rte_thread_func thread_func, void *arg)
int rte_thread_attr_get_affinity(rte_thread_attr_t *thread_attr, rte_cpuset_t *cpuset)
struct eal_tls_key * rte_thread_key
int rte_thread_attr_init(rte_thread_attr_t *attr)
int rte_thread_set_affinity(rte_cpuset_t *cpusetp)
int rte_thread_get_priority(rte_thread_t thread_id, enum rte_thread_priority *priority)
int rte_thread_detach(rte_thread_t thread_id)
void rte_thread_get_affinity(rte_cpuset_t *cpusetp)
rte_thread_t rte_thread_self(void)
int rte_thread_key_delete(rte_thread_key key)
int rte_thread_create_control(rte_thread_t *thread, const char *name, rte_thread_func thread_func, void *arg)
uint32_t(* rte_thread_func)(void *arg)
int rte_thread_key_create(rte_thread_key *key, void(*destructor)(void *))
int rte_thread_set_affinity_by_id(rte_thread_t thread_id, const rte_cpuset_t *cpuset)
int rte_thread_get_affinity_by_id(rte_thread_t thread_id, rte_cpuset_t *cpuset)