1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2007-10-26 23:11:18 +00:00
parent f026c0fc82
commit d6af287397
6 changed files with 184 additions and 52 deletions

View file

@ -1285,11 +1285,11 @@ bool simplelist_show_list(struct simplelist_info *info)
gui_syncstatusbar_draw(&statusbars, true);
list_do_action(CONTEXT_STD, info->timeout,
&lists, &action, LIST_WRAP_UNLESS_HELD);
#ifdef SIMULATOR
/* Sim has no interrupts, so this is needed for buttons to be recognised */
/* We must yield in this case or no other thread can run */
if (info->timeout == TIMEOUT_NOBLOCK)
yield();
#endif
yield();
if (info->action_callback)
{
action = info->action_callback(action, &lists);

View file

@ -113,6 +113,10 @@
#include "cuesheet.h"
#ifdef SIMULATOR
#include "system-sdl.h"
#endif
/*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */
const char appsversion[]=APPSVERSION;
@ -267,6 +271,7 @@ static void init(void)
{
init_threads();
buffer_init();
set_irq_level(0);
lcd_init();
#ifdef HAVE_REMOTE_LCD
lcd_remote_init();