1
0
Fork 0
forked from len0rd/rockbox

Hopefully get shutdown/exit handling on SDL/maemo right.

Make shutdown_hw() not return as it's supposed to, ensure sim_do_exit() is called from main thread and move sim_kernel_shutdown() into it to simplify things.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29455 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-02-28 03:24:48 +00:00
parent d69d406e09
commit d8f6c75ab9
6 changed files with 45 additions and 51 deletions

View file

@ -23,7 +23,6 @@
#include <libhal.h>
#include <libosso.h>
#include <SDL_thread.h>
#include <SDL_events.h>
#include "config.h"
#include "system.h"
@ -212,15 +211,6 @@ void reset_poweroff_timer(void)
{
}
void shutdown_hw(void)
{
/* Shut down SDL event loop */
SDL_Event event;
memset(&event, 0, sizeof(SDL_Event));
event.type = SDL_USEREVENT;
SDL_PushEvent(&event);
}
void cancel_shutdown(void)
{
}