diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-28 03:24:48 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-28 03:24:48 +0000 |
commit | d8f6c75ab94ee97e9a49ce669d74dc252225586a (patch) | |
tree | f2eee157a098402ed5ae05866505bfa0e0a20d2b /firmware/target/hosted/maemo | |
parent | d69d406e096d9df587e9b263cc16553d17b63162 (diff) | |
download | rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.tar.gz rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.zip |
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
Diffstat (limited to 'firmware/target/hosted/maemo')
-rw-r--r-- | firmware/target/hosted/maemo/maemo-thread.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/firmware/target/hosted/maemo/maemo-thread.c b/firmware/target/hosted/maemo/maemo-thread.c index 6593a9faa5..a0e5824252 100644 --- a/firmware/target/hosted/maemo/maemo-thread.c +++ b/firmware/target/hosted/maemo/maemo-thread.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <libhal.h> | 23 | #include <libhal.h> |
24 | #include <libosso.h> | 24 | #include <libosso.h> |
25 | #include <SDL_thread.h> | 25 | #include <SDL_thread.h> |
26 | #include <SDL_events.h> | ||
27 | 26 | ||
28 | #include "config.h" | 27 | #include "config.h" |
29 | #include "system.h" | 28 | #include "system.h" |
@@ -212,15 +211,6 @@ void reset_poweroff_timer(void) | |||
212 | { | 211 | { |
213 | } | 212 | } |
214 | 213 | ||
215 | void shutdown_hw(void) | ||
216 | { | ||
217 | /* Shut down SDL event loop */ | ||
218 | SDL_Event event; | ||
219 | memset(&event, 0, sizeof(SDL_Event)); | ||
220 | event.type = SDL_USEREVENT; | ||
221 | SDL_PushEvent(&event); | ||
222 | } | ||
223 | |||
224 | void cancel_shutdown(void) | 214 | void cancel_shutdown(void) |
225 | { | 215 | { |
226 | } | 216 | } |