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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user