09/10/2021 09:41, Narcisa Ana Maria Vasile:
From: Narcisa Vasile <redacted>
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 <redacted>
---
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.