fix: Update thread names

Remove _thread suffix and rename threads.
pull/8612/head
Jeroen de Bruijn 2018-11-02 13:44:24 +01:00
parent 1f4f623339
commit 3f635ef813
No known key found for this signature in database
GPG Key ID: 7D12D6AB2A547EBB
5 changed files with 6 additions and 6 deletions

View File

@ -617,7 +617,7 @@ nsapi_error_t CellularConnectionFSM::start_dispatch()
{
MBED_ASSERT(!_queue_thread);
_queue_thread = new rtos::Thread(osPriorityNormal, 2048, NULL, "fsm_queue_thread");
_queue_thread = new rtos::Thread(osPriorityNormal, 2048, NULL, "cellular_fsm_queue");
if (!_queue_thread) {
stop();
return NSAPI_ERROR_NO_MEMORY;

View File

@ -1536,7 +1536,7 @@
* TCPIP_THREAD_NAME: The name assigned to the main tcpip thread.
*/
#if !defined TCPIP_THREAD_NAME || defined __DOXYGEN__
#define TCPIP_THREAD_NAME "tcpip_thread"
#define TCPIP_THREAD_NAME "lwip_tcpip"
#endif
/**

View File

@ -68,7 +68,7 @@ static EventQueue *prepare_event_queue()
// Only need to queue 2 events. new blows on failure.
event_queue = new EventQueue(2 * EVENTS_EVENT_SIZE, NULL);
event_thread = new Thread(osPriorityNormal, PPP_THREAD_STACK_SIZE, NULL, "event_thread");
event_thread = new Thread(osPriorityNormal, PPP_THREAD_STACK_SIZE, NULL, "ppp_lwip");
if (event_thread->start(callback(event_queue, &EventQueue::dispatch_forever)) != osOK) {
delete event_thread;

View File

@ -52,7 +52,7 @@ MBED_NORETURN void mbed_rtos_start()
_main_thread_attr.cb_size = sizeof(_main_obj);
_main_thread_attr.cb_mem = &_main_obj;
_main_thread_attr.priority = osPriorityNormal;
_main_thread_attr.name = "main_thread";
_main_thread_attr.name = "rtx_main";
/* Allow non-secure main thread to call secure functions */
#if defined(DOMAIN_NS) && (DOMAIN_NS == 1U)

View File

@ -70,8 +70,8 @@
// LIBSPACE default value set for ARMCC
#define OS_THREAD_LIBSPACE_NUM 4
#define OS_IDLE_THREAD_NAME "idle_thread"
#define OS_TIMER_THREAD_NAME "timer_thread"
#define OS_IDLE_THREAD_NAME "rtx_idle"
#define OS_TIMER_THREAD_NAME "rtx_timer"
/* Enable only the evr events we use in Mbed-OS to save flash space. */
//Following events are used by Mbed-OS, DO NOT disable them