Change the thread api a bit.
commit5219558e42b4721b1fc4d6e2cf7b3239f6bbb440
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sat, 5 Mar 2011 17:48:06 +0000 (5 17:48 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sat, 5 Mar 2011 17:48:06 +0000 (5 17:48 +0000)
treeea01a47602b68561d294f705e8ab7669fb00ae9a
parent1287fcc7856457c1e2ef83fe9b5af30bcdb68989
Change the thread api a bit.

* Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler.
* thread_self_entry() shortcut for kernel.c.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657
13 files changed:
apps/codec_thread.c
apps/plugin.c
apps/plugin.h
apps/plugins/mpegplayer/audio_thread.c
apps/recorder/pcm_record.c
firmware/drivers/ata.c
firmware/export/thread.h
firmware/kernel.c
firmware/storage.c
firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c
firmware/target/hosted/sdl/thread-sdl.c
firmware/thread.c
firmware/usb.c