[app] detach the app threads

This commit is contained in:
Travis Geiselbrecht
2012-12-22 15:50:08 -08:00
parent 3f54063beb
commit 058e24354f

View File

@@ -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);
}