summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/audio_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/plugins/mpegplayer/audio_thread.c
parent0b0f99b18ebe6305c9cab12bf8b36d154fc9c87f (diff)
downloadrockbox-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/plugins/mpegplayer/audio_thread.c')
-rw-r--r--apps/plugins/mpegplayer/audio_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/audio_thread.c b/apps/plugins/mpegplayer/audio_thread.c
index 45fa7257ef..f976fd6007 100644
--- a/apps/plugins/mpegplayer/audio_thread.c
+++ b/apps/plugins/mpegplayer/audio_thread.c
@@ -468,7 +468,7 @@ static void audio_thread(void)
468 struct audio_thread_data td; 468 struct audio_thread_data td;
469#ifdef HAVE_PRIORITY_SCHEDULING 469#ifdef HAVE_PRIORITY_SCHEDULING
470 /* Up the priority since the core DSP over-yields internally */ 470 /* Up the priority since the core DSP over-yields internally */
471 int old_priority = rb->thread_set_priority(THREAD_ID_CURRENT, 471 int old_priority = rb->thread_set_priority(rb->thread_self(),
472 PRIORITY_PLAYBACK-4); 472 PRIORITY_PLAYBACK-4);
473#endif 473#endif
474 474
@@ -514,7 +514,7 @@ static void audio_thread(void)
514 default: 514 default:
515 { 515 {
516#ifdef HAVE_PRIORITY_SCHEDULING 516#ifdef HAVE_PRIORITY_SCHEDULING
517 rb->thread_set_priority(THREAD_ID_CURRENT, old_priority); 517 rb->thread_set_priority(rb->thread_self(), old_priority);
518#endif 518#endif
519 return; 519 return;
520 } 520 }