eal: simplify control thread creation
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Thu, 21 Oct 2021 21:32:20 +0000 (16:32 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 25 Oct 2021 19:43:10 +0000 (21:43 +0200)
commit705356f0811f37a2fa374040d7f6407a97aaa305
treeb34ae9785ce646f9b214508c260b5d99d9506186
parent8cb5d08db940a6b26f5c5ac03b49bac25e9a7022
eal: simplify control thread creation

Remove the usage of pthread barrier and replace it with
synchronization using atomic variable.
This also removes the use of reference count required to synchronize
freeing the memory.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
lib/eal/common/eal_common_thread.c
lib/eal/include/rte_lcore.h