net: conn_mgr: set a thread name

Set a thread name for net conn_mgr, so that e.g. thread listings
within the shell are easier to look at.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
Florian La Roche 2024-03-01 12:37:28 +01:00 committed by Alberto Escolar
parent 1493271cf7
commit d835772f38

View file

@ -338,6 +338,7 @@ static int conn_mgr_mon_init(void)
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE, CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE,
conn_mgr_mon_thread_fn, conn_mgr_mon_thread_fn,
NULL, NULL, NULL, THREAD_PRIORITY, 0, K_NO_WAIT); NULL, NULL, NULL, THREAD_PRIORITY, 0, K_NO_WAIT);
k_thread_name_set(&conn_mgr_mon_thread, "conn_mgr_monitor");
return 0; return 0;
} }