mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Implement cooperative threads on hosted platforms using C code.
This replaces SDL threads with real cooperative threads, which are less cpu intensive and allow priority scheduling. The backend for context switching is dependant on the host (sigaltstack/longjmp on Unix, Fibers on Windows). configure has options to force or disallow SDL threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29327 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3926c30705
commit
6d85de3419
13 changed files with 580 additions and 27 deletions
|
@ -37,7 +37,11 @@ target/hosted/sdl/lcd-remote-bitmap.c
|
|||
#endif
|
||||
target/hosted/sdl/lcd-sdl.c
|
||||
target/hosted/sdl/system-sdl.c
|
||||
#ifdef HAVE_SDL_THREADS
|
||||
target/hosted/sdl/thread-sdl.c
|
||||
#else
|
||||
thread.c
|
||||
#endif
|
||||
target/hosted/sdl/timer-sdl.c
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
target/hosted/sdl/key_to_touch-sdl.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue