[app] detach the app threads
This commit is contained in:
@@ -62,6 +62,8 @@ static void start_app(const struct app_descriptor *app)
|
||||
uint32_t stack_size = (app->flags & APP_FLAG_CUSTOM_STACK_SIZE) ? app->stack_size : DEFAULT_STACK_SIZE;
|
||||
|
||||
printf("starting app %s\n", app->name);
|
||||
thread_resume(thread_create(app->name, &app_thread_entry, (void *)app, DEFAULT_PRIORITY, stack_size));
|
||||
thread_t *t = thread_create(app->name, &app_thread_entry, (void *)app, DEFAULT_PRIORITY, stack_size);
|
||||
thread_detach(t);
|
||||
thread_resume(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user