Skip to content

Commit 83c3ef0

Browse files
authored
freertos: Thread exit more common (#3094)
In native side, even not call `os_thread_exit` at end of thread code, can also exit correctly.
1 parent 99bbad8 commit 83c3ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/platform/common/freertos/freertos_thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ os_thread_wrapper(void *arg)
204204
thread_data_list_add(thread_data);
205205

206206
thread_data->start_routine(thread_data->arg);
207-
os_thread_cleanup();
207+
os_thread_exit(NULL);
208208
}
209209

210210
int

0 commit comments

Comments
 (0)