1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/hosted/sdl
Michael Sevakis 6ed00870ab Base scheduler queues off linked lists and do cleanup/consolidation
Abstracts threading from itself a bit, changes the way its queues are
handled and does type hiding for that as well.

Do alot here due to already required major brain surgery.

Threads may now be on a run queue and a wait queue simultaneously so
that the expired timer only has to wake the thread but not remove it
from the wait queue which simplifies the implicit wake handling.

List formats change for wait queues-- doubly-linked, not circular.
Timeout queue is now singly-linked. The run queue is still circular
as before.

Adds a better thread slot allocator that may keep the slot marked as
used regardless of the thread state. Assists in dumping special tasks
that switch_thread was tasked to perform (blocking tasks).

Deletes alot of code yet surprisingly, gets larger than expected.
Well, I'm not not minding that for the time being-- omlettes and break
a few eggs and all that.

Change-Id: I0834d7bb16b2aecb2f63b58886eeda6ae4f29d59
2014-08-16 05:15:37 -04:00
..
app fix red 2013-09-05 20:50:51 +02:00
button-sdl.c Fix (unintentional) linkage of HAVE_BUTTON_DATA with HAVE_TOUCHSCREEN 2014-03-18 10:56:19 +01:00
button-sdl.h Initial maemo platform support 2011-02-08 20:05:25 +00:00
buttonmap.h Rockbox as an application: Add an 320x240 SDL application target. 2010-07-06 15:11:56 +00:00
kernel-sdl.c Hopefully get shutdown/exit handling on SDL/maemo right. 2011-02-28 03:24:48 +00:00
key_to_touch-sdl.c fix button maps and assign some buttons for uisimulator. 2010-10-13 12:54:25 +00:00
lcd-bitmap.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
lcd-bitmap.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-charcells.c Fix non-integer display_zoom for charcell. 2012-06-19 21:56:57 +02:00
lcd-charcells.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-remote-bitmap.c lcd drivers: Convert lcd_[remote_]framebuffer to a pointer 2012-02-28 11:44:59 +11:00
lcd-remote-bitmap.h - Move uisimulator/sdl/*.[ch] into the target tree, under firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. 2010-05-15 21:02:47 +00:00
lcd-sdl.c Change display_zoom from int to double. 2012-06-19 21:27:53 +02:00
lcd-sdl.h Remove extraneous "extern int display_zoom" declarations. 2012-06-14 22:23:50 +02:00
pcm-sdl.c Provide high resolution volume and prescaler to hosted targets. 2013-04-27 06:59:27 +02:00
sim-ui-defines.h zenxfistyle: add simulator bitmap and button map 2014-02-16 22:10:22 +01:00
system-sdl.c Fix hostfs_init() return value. 2014-03-03 11:19:56 +01:00
system-sdl.h sim/sdlapp: Do not quit immediately on panicf, but wait for quit. 2014-02-02 16:59:29 +01:00
system-target.h Don't duplicate byteswap code. Invent system where NEED_GENERIC_BYTESWAPS is set if the generic functions from system.h are needed. 2010-07-15 22:01:06 +00:00
thread-sdl.c Base scheduler queues off linked lists and do cleanup/consolidation 2014-08-16 05:15:37 -04:00
thread-sdl.h Implement cooperative threads on hosted platforms using C code. 2011-02-18 22:46:01 +00:00
timer-sdl.c Add svn:keywords to firmware/target/hosted source files 2011-03-05 15:31:52 +00:00