From cc889e9d608e6b07b78541849b7e63b6fb3f6058 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 5 Mar 2011 17:48:06 +0000 Subject: 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 --- apps/codec_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codec_thread.c') diff --git a/apps/codec_thread.c b/apps/codec_thread.c index f166f2b..6f15ba1 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 -- cgit v1.1