Thread (30 messages) 30 messages, 7 authors, 2021-10-25

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

<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_create
function
quoted
+	 * _RTE_CTRL_THREAD_RUNNING - Control thread is running
successfully
quoted
+	 * _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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help