[PATCH v5 1/6] eal: add thread attributes
David Marchand
david.marchand at redhat.com
Thu Oct 6 10:32:27 CEST 2022
On Wed, Oct 5, 2022 at 7:07 PM Tyler Retzlaff
<roretzla at linux.microsoft.com> wrote:
> @@ -57,7 +65,105 @@ enum rte_thread_priority {
> __rte_experimental
> rte_thread_t rte_thread_self(void);
>
> -#ifdef RTE_HAS_CPUSET
> +/**
> + * @warning
> + * @b EXPERIMENTAL: this API may change without prior notice.
> + *
> + * Check if 2 thread ids are equal.
> + *
> + * @param t1
> + * First thread id.
> + *
> + * @param t2
> + * Second thread id.
> + *
> + * @return
> + * If the ids are equal, return nonzero.
> + * Otherwise, return 0.
> + */
> +__rte_experimental
> +int rte_thread_equal(rte_thread_t t1, rte_thread_t t2);
Rebase damage, I'll fix when applying.
--
David Marchand
More information about the dev
mailing list