Sfoglia il codice sorgente

update: lwip的task加上名字

Wendal Chen 3 anni fa
parent
commit
9997946663
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/network/lwip2.1.3/sys_arch.c

+ 1 - 1
src/network/lwip2.1.3/sys_arch.c

@@ -437,7 +437,7 @@ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg,
     int tsk_prio = ubPrio-LWIP_TASK_START_PRIO;
     int tsk_prio = ubPrio-LWIP_TASK_START_PRIO;
     OS_STK * task_stk = &lwip_task_stk[tsk_prio*LWIP_STK_SIZE];
     OS_STK * task_stk = &lwip_task_stk[tsk_prio*LWIP_STK_SIZE];
 
 
-    tls_os_task_create(NULL, NULL,
+    tls_os_task_create(NULL, name ? name : "lwip",
                        thread,
                        thread,
                        (void *)arg,
                        (void *)arg,
                        (void *)task_stk,
                        (void *)task_stk,