diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
commit | cc889e9d608e6b07b78541849b7e63b6fb3f6058 (patch) | |
tree | ea01a47602b68561d294f705e8ab7669fb00ae9a /apps/codec_thread.c | |
parent | 0b0f99b18ebe6305c9cab12bf8b36d154fc9c87f (diff) | |
download | rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.tar.gz 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.c | 2 |
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) | |||
567 | 567 | ||
568 | bool is_codec_thread(void) | 568 | bool is_codec_thread(void) |
569 | { | 569 | { |
570 | return thread_get_current() == codec_thread_id; | 570 | return thread_self() == codec_thread_id; |
571 | } | 571 | } |
572 | 572 | ||
573 | #ifdef HAVE_PRIORITY_SCHEDULING | 573 | #ifdef HAVE_PRIORITY_SCHEDULING |