summaryrefslogtreecommitdiffstats
path: root/apps/codec_thread.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-03-05 17:48:06 +0000
committerThomas Martitz <kugel@rockbox.org>2011-03-05 17:48:06 +0000
commitcc889e9d608e6b07b78541849b7e63b6fb3f6058 (patch)
treeea01a47602b68561d294f705e8ab7669fb00ae9a /apps/codec_thread.c
parent0b0f99b18ebe6305c9cab12bf8b36d154fc9c87f (diff)
downloadrockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.tar.gz
rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.tar.bz2
rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.zip
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
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r--apps/codec_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index f166f2ba18..6f15ba1fb3 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -567,7 +567,7 @@ void codec_thread_resume(void)
bool is_codec_thread(void)
{
- return thread_get_current() == codec_thread_id;
+ return thread_self() == codec_thread_id;
}
#ifdef HAVE_PRIORITY_SCHEDULING