Re: [PATCH v4] eal/unix: optimize thread creation

2024-11-04 Thread David Marchand
On Mon, Nov 4, 2024 at 9:57 AM David Marchand wrote: > > Setting the cpu affinity of the child thread from the parent thread is > racy when using pthread_setaffinity_np, as the child thread may start > running and initialize before affinity is set. > > On the other hand, setting the cpu affinity f

[PATCH v4] eal/unix: optimize thread creation

2024-11-04 Thread David Marchand
Setting the cpu affinity of the child thread from the parent thread is racy when using pthread_setaffinity_np, as the child thread may start running and initialize before affinity is set. On the other hand, setting the cpu affinity from the child thread itself may fail, so the parent thread waits