Sfoglia il codice sorgente

freertos: Thread exit more common (#3094)

In native side,  even not call `os_thread_exit` at end of thread code,
can also exit correctly.
tkernelcn 2 anni fa
parent
commit
83c3ef0f46
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/shared/platform/common/freertos/freertos_thread.c

+ 1 - 1
core/shared/platform/common/freertos/freertos_thread.c

@@ -204,7 +204,7 @@ os_thread_wrapper(void *arg)
     thread_data_list_add(thread_data);
 
     thread_data->start_routine(thread_data->arg);
-    os_thread_cleanup();
+    os_thread_exit(NULL);
 }
 
 int