[dpdk-dev] [PATCH v16 2/9] eal: add thread attributes
Thomas Monjalon
thomas at monjalon.net
Tue Oct 12 18:12:21 CEST 2021
09/10/2021 09:41, Narcisa Ana Maria Vasile:
> From: Narcisa Vasile <navasile at microsoft.com>
>
> Implement thread attributes for:
> * thread affinity
> * thread priority
> Implement functions for managing thread attributes.
>
> Priority is represented through an enum that allows for two levels:
> - RTE_THREAD_PRIORITY_NORMAL
> - RTE_THREAD_PRIORITY_REALTIME_CRITICAL
It doesn't say how do you translate these priorites in POSIX and win32.
> Affinity is described by the rte_cpuset_t type.
>
> An rte_thread_attr_t object can be set to the default values
> by calling rte_thread_attr_init().
>
> Signed-off-by: Narcisa Vasile <navasile at microsoft.com>
[...]
> lib/eal/common/rte_thread.c | 46 ++++++++++++++++++
> lib/eal/windows/rte_thread.c | 44 +++++++++++++++++
These 2 files look like code duplication.
More information about the dev
mailing list