Re: [dpdk-dev] [PATCH v3 1/2] eal: simplify the implementation of rte_ctrl_thread_create
From: Honnappa Nagarahalli <hidden>
Date: 2021-08-30 22:13:05
From: Honnappa Nagarahalli <hidden>
Date: 2021-08-30 22:13:05
<snip>
On Mon, 30 Aug 2021 11:34:12 -0500 Honnappa Nagarahalli [off-list ref] wrote:quoted
+ /* Control thread status. + * + * _RTE_CTRL_THREAD_LAUNCHING - Yet to call pthread_createfunctionquoted
+ * _RTE_CTRL_THREAD_RUNNING - Control thread is runningsuccessfullyquoted
+ * _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.