Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-11 Thread Dmitry Kozlyuk
2022-04-09 01:56 (UTC-0700), Tyler Retzlaff: > On Fri, Apr 08, 2022 at 05:01:45PM +0300, Dmitry Kozlyuk wrote: > > 2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: > > [...] > > > +static int > > > +test_thread_affinity(void) > > > +{ > > > + pthread_t id; > > > + rte_thread_t thread_id; > > > + > >

Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-09 Thread Tyler Retzlaff
On Fri, Apr 08, 2022 at 05:01:45PM +0300, Dmitry Kozlyuk wrote: > 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, NU

Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-08 Thread Dmitry Kozlyuk
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.opaq