From 058e24354f81d441041bcb9d20ec534ebe5791ab Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sat, 22 Dec 2012 15:50:08 -0800 Subject: [PATCH] [app] detach the app threads --- app/app.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.c b/app/app.c index c5e7e2e9..a6260217 100644 --- a/app/app.c +++ b/app/app.c @@ -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); }