[dpdk-dev] [PATCH v3 1/2] eal: simplify the implementation of rte_ctrl_thread_create

Honnappa Nagarahalli Honnappa.Nagarahalli at arm.com
Tue Aug 31 00:12:33 CEST 2021


<snip>

> 
> On Mon, 30 Aug 2021 11:34:12 -0500
> Honnappa Nagarahalli <honnappa.nagarahalli at arm.com> wrote:
> 
> > +	/* Control thread status.
> > +	 *
> > +	 * _RTE_CTRL_THREAD_LAUNCHING - Yet to call pthread_create
> function
> > +	 * _RTE_CTRL_THREAD_RUNNING - Control thread is running
> successfully
> > +	 * _RTE_CTRL_THREAD_ERROR - Control thread encountered an error.
> > +	 *                          'ret' has the error code.
> > +	 */
> > +	unsigned int ctrl_thread_status;
> 
> An enum would be clearer here.
I used #defines as the values are assigned to an atomic variable. We can assume that enum will be an int.


More information about the dev mailing list