[PATCH] eal: add worker threads cleanup in rte_eal_cleanup()

Stephen Hemminger stephen at networkplumber.org
Fri Jan 10 18:19:02 CET 2025


On Fri, 10 Jan 2025 12:17:17 +0530
Gagandeep Singh <g.singh at nxp.com> wrote:

> This patch introduces a worker thread cleanup function in the EAL library,
> ensuring proper termination of created pthreads and invocation of
> registered pthread destructors.
> This guarantees the correct cleanup of thread-specific resources,
> used by drivers or applications.
> 
> Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
> ---

What problem is this trying to solve?

Canceling threads sends signals and can be problematic.
Many of the operations done in drivers are not signal safe.


More information about the dev mailing list