Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-22 Thread Tyler Retzlaff
On Wed, Jun 22, 2022 at 01:24:14AM +0300, Dmitry Kozlyuk wrote: > 2022-06-21 14:28 (UTC-0700), Tyler Retzlaff: > > On Tue, Jun 21, 2022 at 10:44:21PM +0300, Dmitry Kozlyuk wrote: > > > 2022-06-21 11:51 (UTC-0700), Tyler Retzlaff: > > > > > > +int > > > > > > +rte_thread_join(rte_thread_t thread_i

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-21 Thread Dmitry Kozlyuk
2022-06-21 14:28 (UTC-0700), Tyler Retzlaff: > On Tue, Jun 21, 2022 at 10:44:21PM +0300, Dmitry Kozlyuk wrote: > > 2022-06-21 11:51 (UTC-0700), Tyler Retzlaff: > > > > > +int > > > > > +rte_thread_join(rte_thread_t thread_id, unsigned long *value_ptr) > > > > > +{ > > > > > + int ret = 0; > >

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-21 Thread Tyler Retzlaff
On Tue, Jun 21, 2022 at 10:44:21PM +0300, Dmitry Kozlyuk wrote: > 2022-06-21 11:51 (UTC-0700), Tyler Retzlaff: > > > > +int > > > > +rte_thread_join(rte_thread_t thread_id, unsigned long *value_ptr) > > > > +{ > > > > + int ret = 0; > > > > + void *res = NULL; > > > > + void **pre

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-21 Thread Dmitry Kozlyuk
2022-06-21 11:51 (UTC-0700), Tyler Retzlaff: > > > +int > > > +rte_thread_join(rte_thread_t thread_id, unsigned long *value_ptr) > > > +{ > > > + int ret = 0; > > > + void *res = NULL; > > > + void **pres = NULL; > > > + > > > + if (value_ptr != NULL) > > > + pres = &res; > > > + > > > + re

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-21 Thread Tyler Retzlaff
On Sat, Jun 18, 2022 at 03:59:08PM +0300, Dmitry Kozlyuk wrote: > 2022-06-14 16:47 (UTC-0700), Tyler Retzlaff: > > On Windows, the function executed by a thread when the thread starts is > > represeneted by a function pointer of type DWORD (*func) (void*). > > On other platforms, the function point

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-21 Thread Tyler Retzlaff
On Sat, Jun 18, 2022 at 03:59:08PM +0300, Dmitry Kozlyuk wrote: > 2022-06-14 16:47 (UTC-0700), Tyler Retzlaff: > > > +int > > +rte_thread_create(rte_thread_t *thread_id, > > + const rte_thread_attr_t *thread_attr, > > + rte_thread_func thread_func, void *args) > > +{ > > [...]

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-20 Thread Tyler Retzlaff
On Sat, Jun 18, 2022 at 03:59:08PM +0300, Dmitry Kozlyuk wrote: > 2022-06-14 16:47 (UTC-0700), Tyler Retzlaff: > > On Windows, the function executed by a thread when the thread starts is > > represeneted by a function pointer of type DWORD (*func) (void*). > > On other platforms, the function point

Re: [PATCH v2 2/6] eal: add thread lifetime management

2022-06-18 Thread Dmitry Kozlyuk
2022-06-14 16:47 (UTC-0700), Tyler Retzlaff: > On Windows, the function executed by a thread when the thread starts is > represeneted by a function pointer of type DWORD (*func) (void*). > On other platforms, the function pointer is a void* (*func) (void*). > > Performing a cast between these two

[PATCH v2 2/6] eal: add thread lifetime management

2022-06-14 Thread Tyler Retzlaff
The *rte_thread_create()* function can optionally receive an rte_thread_attr_t object that will cause the thread to be created with the affinity and priority described by the attributes object. If no rte_thread_attr_t is passed (parameter is NULL), the default affinity and priority are used. On Wi