[dpdk-dev] [PATCH v16 8/9] eal: implement functions for thread barrier management
Thomas Monjalon
thomas at monjalon.net
Tue Oct 12 18:32:09 CEST 2021
09/10/2021 09:41, Narcisa Ana Maria Vasile:
> From: Narcisa Vasile <navasile at microsoft.com>
>
> Add functions for barrier init, destroy, wait.
>
> A portable type is used to represent a barrier identifier.
> The rte_thread_barrier_wait() function returns the same value
> on all platforms.
>
> Signed-off-by: Narcisa Vasile <navasile at microsoft.com>
> ---
> lib/eal/common/rte_thread.c | 61 ++++++++++++++++++++++++++++++++++++
> lib/eal/include/rte_thread.h | 58 ++++++++++++++++++++++++++++++++++
> lib/eal/version.map | 3 ++
> lib/eal/windows/rte_thread.c | 56 +++++++++++++++++++++++++++++++++
> 4 files changed, 178 insertions(+)
It doesn't need to be part of the API.
The pthread barrier is used only as part of the control thread implementation.
The need disappear if you implement control thread on Windows.
More information about the dev
mailing list