freertos: Thread exit more common (#3094)

In native side,  even not call `os_thread_exit` at end of thread code,
can also exit correctly.
This commit is contained in:
tkernelcn
2024-01-26 18:38:55 +08:00
committed by GitHub
parent 99bbad8cdb
commit 83c3ef0f46

View File

@ -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