Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eal/windows: fix data race when creating threads
[ upstream commit e4e983b ] eal_thread_loop() uses lcore_config[i].thread_id, which is stored upon the return from CreateThread(). Per documentation, eal_thread_loop() can start before CreateThread() returns and the ID is stored. Create lcore worker threads suspended and then subsequently resume to allow &lcore_config[i].thread_id be stored before eal_thread_loop execution. Fixes: 53ffd9f ("eal/windows: add minimum viable code") Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
- Loading branch information