[PATCH v5 4/6] test/threads: add tests for thread lifetime API
David Marchand
david.marchand at redhat.com
Thu Oct 6 10:32:56 CEST 2022
On Wed, Oct 5, 2022 at 7:07 PM Tyler Retzlaff
<roretzla at linux.microsoft.com> wrote:
>
> Test basic functionality and demonstrate use of following thread
> lifetime api.
>
> * rte_thread_create
> * rte_thread_detach
And, to some extent, rte_thread_equal.
> * rte_thread_join
>
> Signed-off-by: Narcisa Vasile <navasile at microsoft.com>
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
> app/test/test_threads.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 52 insertions(+), 2 deletions(-)
>
> diff --git a/app/test/test_threads.c b/app/test/test_threads.c
> index b9d8b4e..1077373 100644
> --- a/app/test/test_threads.c
> +++ b/app/test/test_threads.c
> @@ -14,7 +14,7 @@
>
> static uint32_t thread_id_ready;
>
> -static void *
> +static uint32_t
> thread_main(void *arg)
Stopping at this patch, I still see a build failure.
This prototype change makes it uncompatible with remaining calls to
pthread_create.
This is fixed in patch 6 which I intend to squash here (and adding the
check on arg != NULL that is in patch 5).
Deal?
--
David Marchand
More information about the dev
mailing list