forked from len0rd/rockbox
SDL Simulator: Get thread shutdown and properly handled and fix a minor memory leak that happens when threads exit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26336 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0dcf93ed18
commit
deb1600bbc
5 changed files with 91 additions and 29 deletions
|
|
@ -86,7 +86,7 @@ static void button_event(int key, bool pressed);
|
|||
extern bool debug_wps;
|
||||
extern bool mapping;
|
||||
|
||||
void gui_message_loop(void)
|
||||
bool gui_message_loop(void)
|
||||
{
|
||||
SDL_Event event;
|
||||
static int x,y,xybutton = 0;
|
||||
|
|
@ -176,8 +176,7 @@ void gui_message_loop(void)
|
|||
case SDL_QUIT:
|
||||
{
|
||||
sim_exit_irq_handler();
|
||||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
default:
|
||||
/*printf("Unhandled event\n"); */
|
||||
|
|
@ -185,6 +184,8 @@ void gui_message_loop(void)
|
|||
}
|
||||
sim_exit_irq_handler();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void button_event(int key, bool pressed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue