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
This commit is contained in:
parent
7ba70a6d8e
commit
a289324e30
1 changed files with 6 additions and 0 deletions
|
@ -167,6 +167,12 @@ static bool dbg_os(void)
|
||||||
gui_synclist_do_button(&lists, action, LIST_WRAP_UNLESS_HELD);
|
gui_synclist_do_button(&lists, action, LIST_WRAP_UNLESS_HELD);
|
||||||
if (action == ACTION_STD_CANCEL)
|
if (action == ACTION_STD_CANCEL)
|
||||||
break;
|
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)
|
else if(default_event_handler(action) == SYS_USB_CONNECTED)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue