Fix FS#11280
commit807ac898d45d709ac7066c6d9ce07d63e88cc89c
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Mon, 17 May 2010 17:19:31 +0000 (17 17:19 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Mon, 17 May 2010 17:19:31 +0000 (17 17:19 +0000)
tree9a330d88b3e3d40dbdcfbdddd0f85aa409a77cbf
parent439e4c1f3a5bc2f815c90699e866e7c9f7415822
Fix FS#11280

SDL docs say SDL_PumpEvent (implicitely called by SDL_Poll/WaitEvent)
may only be called from the thread that initializes the video subsystem,
apparently because Windows requires that.
So create an (or bring it back) SDL thread (with preemtive behavior) to read the
event queue for buttons and initialize the video subsystem.
I'd probably would have done that anyway because it enables an interrupt-like method to read them (no polling).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26113 a1c6a512-1295-4272-9138-f99709370657
firmware/target/hosted/sdl/button-sdl.c
firmware/target/hosted/sdl/system-sdl.c
firmware/target/hosted/sdl/system-sdl.h