summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2007-03-28 06:36:34 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2007-03-28 06:36:34 +0000
commita289324e30c78db7b333d461aca5554f6ecf9cfe (patch)
treee684dcf376eb2f43d5b22bc621a50ea4f16720b9
parent7ba70a6d8eecfd96fcc65a6e904ed0a0725c5ae7 (diff)
Ability to kill threads in debug screen by pressing select.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12945 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 3708882955..899ee4d0cc 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -167,6 +167,12 @@ static bool dbg_os(void)
gui_synclist_do_button(&lists, action, LIST_WRAP_UNLESS_HELD);
if (action == ACTION_STD_CANCEL)
break;
+ if (action == ACTION_STD_OK)
+ {
+ struct thread_entry *thread = &threads[gui_synclist_get_sel_pos(&lists)];
+ if (thread->name != NULL)
+ remove_thread(thread);
+ }
else if(default_event_handler(action) == SYS_USB_CONNECTED)
return true;
}