rockbox/firmware/target/hosted
Michael Sevakis 533d396761 Add multi-reader, single-writer locks to kernel.
Any number of readers may be in the critical section at a time and writers
are mutually exclusive to all other threads. They are a better choice when
data is rarely modified but often read and multiple threads can safely
access it for reading.

Priority inheritance is fully implemented along with other changes to the
kernel to fully support it on multiowner objects.

This also cleans up priority code in the kernel and updates some associated
structures in existing objects to the cleaner form.

Currently doesn't add the mrsw_lock.[ch] files since they're not yet
needed by anything but the supporting improvements are still useful.

This includes a typed bitarray API (bitarray.h) which is pretty basic
for now.

Change-Id: Idbe43dcd9170358e06d48d00f1c69728ff45b0e3
Reviewed-on: http://gerrit.rockbox.org/801
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested: Michael Sevakis <jethead71@rockbox.org>
2014-08-06 02:47:47 +02:00
..
android android: Get the port up and running again 2014-03-09 18:11:35 +01:00
maemo Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
samsungypr Fix hostfs_init() return value. 2014-03-03 11:19:56 +01:00
sdl Add multi-reader, single-writer locks to kernel. 2014-08-06 02:47:47 +02:00
cpuinfo-linux.c *frequency_linux(): factorize 2012-01-04 00:34:02 +00:00
cpuinfo-linux.h *frequency_linux(): factorize 2012-01-04 00:34:02 +00:00
debug-hosted.c Include stdlib.h for atexit(). 2012-01-25 22:49:19 +01:00
filesystem-unix.c RaaA: Move directory related stuff from filesystem-unix.c into rbpaths.c. 2014-02-23 20:23:52 +01:00
kernel-unix.c Do not include kernel.h in system.h. 2014-01-05 19:35:23 +01:00
kernel-unix.h android/ypr0: Merge kernel-*.c to generic kernel-unix.c. 2012-01-21 18:39:19 +01:00
lc-unix.c load_code: Get rid of win32 specific code in favor SDL_LoadFunction & friends APIs. 2012-05-26 22:46:56 +02:00
pcm-alsa.c Tweak some PCM drivers for less typecasting with the data pointer. 2012-03-04 08:52:50 -05:00
rtc.c Return -1 for not implemented RTC functions. 2011-03-08 21:36:47 +00:00
system-hosted.h Create fimrware/asm directory for assembly optimized stuff. 2012-01-22 18:46:44 +01:00