Преглед на файлове

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 години
родител
ревизия
83c3ef0f46
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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