On Tue, 6 Dec 2022 09:28:24 -0800 Tyler Retzlaff <roret...@linux.microsoft.com> wrote:
> + /* Wait for the control thread to initialize successfully */ > + while ((ctrl_thread_status = > + __atomic_load_n(¶ms->ctrl_thread_status, > + __ATOMIC_ACQUIRE)) == CTRL_THREAD_LAUNCHING) { > + /* Yield the CPU. Using sched_yield call requires maintaining > + * another implementation for Windows as sched_yield is not > + * supported on Windows. > + */ > + rte_delay_us_sleep(1); > + } Would it be worth introducing and using rte_thread_yield(). Rather than waiting 1us which seems like a long time for this.