diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-26 23:11:18 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-26 23:11:18 +0000 |
commit | d6af28739747099f98f541d1b76ba501882e113c (patch) | |
tree | b6ad8d89d0ef96dd4cea37dd89aad8d3fa345179 /apps/gui | |
parent | f026c0fc826149a3c88d462cca02b69ef5690c30 (diff) | |
download | rockbox-d6af28739747099f98f541d1b76ba501882e113c.tar.gz rockbox-d6af28739747099f98f541d1b76ba501882e113c.zip |
Implement as genuine a set_irq_level function for the sim as possible. The yield added earlier is still nescessary since other threads won't run anyway while viewing the database screen on either sim or target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 4d19bbdf96..38cecaefcc 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -1285,11 +1285,11 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
1285 | gui_syncstatusbar_draw(&statusbars, true); | 1285 | gui_syncstatusbar_draw(&statusbars, true); |
1286 | list_do_action(CONTEXT_STD, info->timeout, | 1286 | list_do_action(CONTEXT_STD, info->timeout, |
1287 | &lists, &action, LIST_WRAP_UNLESS_HELD); | 1287 | &lists, &action, LIST_WRAP_UNLESS_HELD); |
1288 | #ifdef SIMULATOR | 1288 | |
1289 | /* Sim has no interrupts, so this is needed for buttons to be recognised */ | 1289 | /* We must yield in this case or no other thread can run */ |
1290 | if (info->timeout == TIMEOUT_NOBLOCK) | 1290 | if (info->timeout == TIMEOUT_NOBLOCK) |
1291 | yield(); | 1291 | yield(); |
1292 | #endif | 1292 | |
1293 | if (info->action_callback) | 1293 | if (info->action_callback) |
1294 | { | 1294 | { |
1295 | action = info->action_callback(action, &lists); | 1295 | action = info->action_callback(action, &lists); |