Skip to content

Commit

Permalink
freertos: Thread exit more common (#3094)
Browse files Browse the repository at this point in the history
In native side,  even not call `os_thread_exit` at end of thread code,
can also exit correctly.
  • Loading branch information
tkernelcn committed Jan 26, 2024
1 parent 99bbad8 commit 83c3ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/platform/common/freertos/freertos_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83c3ef0

Please sign in to comment.