From 83c3ef0f467def718ea5e829f7dfff711d4c0ef3 Mon Sep 17 00:00:00 2001 From: tkernelcn <90441159+tkernelcn@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:38:55 +0800 Subject: [PATCH] freertos: Thread exit more common (#3094) In native side, even not call `os_thread_exit` at end of thread code, can also exit correctly. --- core/shared/platform/common/freertos/freertos_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/platform/common/freertos/freertos_thread.c b/core/shared/platform/common/freertos/freertos_thread.c index e3524ac6..8d57fda5 100644 --- a/core/shared/platform/common/freertos/freertos_thread.c +++ b/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