Skip to content

Commit 3f635ef

Browse files
committed
fix: Update thread names
Remove _thread suffix and rename threads.
1 parent 1f4f623 commit 3f635ef

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

features/cellular/easy_cellular/CellularConnectionFSM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ nsapi_error_t CellularConnectionFSM::start_dispatch()
617617
{
618618
MBED_ASSERT(!_queue_thread);
619619

620-
_queue_thread = new rtos::Thread(osPriorityNormal, 2048, NULL, "fsm_queue_thread");
620+
_queue_thread = new rtos::Thread(osPriorityNormal, 2048, NULL, "cellular_fsm_queue");
621621
if (!_queue_thread) {
622622
stop();
623623
return NSAPI_ERROR_NO_MEMORY;

features/lwipstack/lwip/src/include/lwip/opt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@
15361536
* TCPIP_THREAD_NAME: The name assigned to the main tcpip thread.
15371537
*/
15381538
#if !defined TCPIP_THREAD_NAME || defined __DOXYGEN__
1539-
#define TCPIP_THREAD_NAME "tcpip_thread"
1539+
#define TCPIP_THREAD_NAME "lwip_tcpip"
15401540
#endif
15411541

15421542
/**

features/lwipstack/ppp_lwip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static EventQueue *prepare_event_queue()
6868

6969
// Only need to queue 2 events. new blows on failure.
7070
event_queue = new EventQueue(2 * EVENTS_EVENT_SIZE, NULL);
71-
event_thread = new Thread(osPriorityNormal, PPP_THREAD_STACK_SIZE, NULL, "event_thread");
71+
event_thread = new Thread(osPriorityNormal, PPP_THREAD_STACK_SIZE, NULL, "ppp_lwip");
7272

7373
if (event_thread->start(callback(event_queue, &EventQueue::dispatch_forever)) != osOK) {
7474
delete event_thread;

rtos/TARGET_CORTEX/mbed_rtos_rtx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MBED_NORETURN void mbed_rtos_start()
5252
_main_thread_attr.cb_size = sizeof(_main_obj);
5353
_main_thread_attr.cb_mem = &_main_obj;
5454
_main_thread_attr.priority = osPriorityNormal;
55-
_main_thread_attr.name = "main_thread";
55+
_main_thread_attr.name = "rtx_main";
5656

5757
/* Allow non-secure main thread to call secure functions */
5858
#if defined(DOMAIN_NS) && (DOMAIN_NS == 1U)

rtos/TARGET_CORTEX/mbed_rtx_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
// LIBSPACE default value set for ARMCC
7171
#define OS_THREAD_LIBSPACE_NUM 4
7272

73-
#define OS_IDLE_THREAD_NAME "idle_thread"
74-
#define OS_TIMER_THREAD_NAME "timer_thread"
73+
#define OS_IDLE_THREAD_NAME "rtx_idle"
74+
#define OS_TIMER_THREAD_NAME "rtx_timer"
7575

7676
/* Enable only the evr events we use in Mbed-OS to save flash space. */
7777
//Following events are used by Mbed-OS, DO NOT disable them

0 commit comments

Comments
 (0)