Thread (290 messages) flat view 290 messages, 13 authors, 2022-04-12

Re: [dpdk-dev] [PATCH v16 2/9] eal: add thread attributes

From: Thomas Monjalon <hidden>
Date: 2021-10-12 16:12:29

09/10/2021 09:41, Narcisa Ana Maria Vasile:
From: Narcisa Vasile <redacted>

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 <redacted>
[...]
 lib/eal/common/rte_thread.c  | 46 ++++++++++++++++++
 lib/eal/windows/rte_thread.c | 44 +++++++++++++++++
These 2 files look like code duplication.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help