mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
0b0f99b18e
commit
cc889e9d60
13 changed files with 67 additions and 55 deletions
|
@ -468,7 +468,7 @@ static void audio_thread(void)
|
|||
struct audio_thread_data td;
|
||||
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||
/* Up the priority since the core DSP over-yields internally */
|
||||
int old_priority = rb->thread_set_priority(THREAD_ID_CURRENT,
|
||||
int old_priority = rb->thread_set_priority(rb->thread_self(),
|
||||
PRIORITY_PLAYBACK-4);
|
||||
#endif
|
||||
|
||||
|
@ -514,7 +514,7 @@ static void audio_thread(void)
|
|||
default:
|
||||
{
|
||||
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||
rb->thread_set_priority(THREAD_ID_CURRENT, old_priority);
|
||||
rb->thread_set_priority(rb->thread_self(), old_priority);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue