Re: [dpdk-dev] [PATCH v7] eal: fix race in ctrl thread creation

2021-04-07 Thread Honnappa Nagarahalli
> Subject: [PATCH v7] eal: fix race in ctrl thread creation > > The creation of control threads uses a pthread barrier for synchronization. > This patch fixes a race condition where the pthread barrier could get > destroyed while one of the threads has not yet returned from the > pthread_barrier

[dpdk-dev] [PATCH v7] eal: fix race in ctrl thread creation

2021-04-07 Thread Luc Pelletier
The creation of control threads uses a pthread barrier for synchronization. This patch fixes a race condition where the pthread barrier could get destroyed while one of the threads has not yet returned from the pthread_barrier_wait function, which could result in undefined behaviour. Fixes: 3a0d46