Since the sdl to target tree move, the main thread cannot be removed anymore,
commit799720451f6129906510ecb8e106c3d25186f2da
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 26 May 2010 17:16:19 +0000 (26 17:16 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 26 May 2010 17:16:19 +0000 (26 17:16 +0000)
tree381161cdc0116db83647804ab1a1a21cda73e5d9
parentb91546362b816f1965af96b11895f699f43398e8
Since the sdl to target tree move, the main thread cannot be removed anymore,
since it's now the default thread which is implicitely created by starting the sim.

This caused a segfault that r26283 tried to fix. Revert r26283 and protect
the main thread from being removed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26315 a1c6a512-1295-4272-9138-f99709370657
apps/misc.c
firmware/target/hosted/sdl/button-sdl.c
firmware/target/hosted/sdl/thread-sdl.c