[PATCH v2 1/3] eal: add rte control thread create API
Stephen Hemminger
stephen at networkplumber.org
Fri Dec 9 02:09:32 CET 2022
On Tue, 6 Dec 2022 09:28:24 -0800
Tyler Retzlaff <roretzla at 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.
More information about the dev
mailing list