[PATCH 3/3] test/threads: add unit test for thread API
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Fri Apr 8 16:01:45 CEST 2022
2022-04-01 06:29 (UTC-0700), Tyler Retzlaff:
[...]
> +static int
> +test_thread_affinity(void)
> +{
> + pthread_t id;
> + rte_thread_t thread_id;
> +
> + RTE_TEST_ASSERT(pthread_create(&id, NULL, thread_main, NULL) == 0,
> + "Failed to create thread");
> + thread_id.opaque_id = id;
The need for this hack means that the new API is unusable in practice.
I think functions to get the current thread ID and to compare IDs
must be the part of this series to accept this unit test patch.
More information about the dev
mailing list