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

2021-04-07 Thread Olivier Matz
Hi Luc, On Wed, Apr 07, 2021 at 10:42:37AM -0400, Luc Pelletier wrote: > 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_

[dpdk-dev] [PATCH v6] 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