forked from len0rd/rockbox
Fix FS#12179 - Simulator build fails when using "configure --sdl-threads". HAVE_PRIORITY_SCHEDULING checks were missing to exclude priority calls when building without priority.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9cc0dab3ce
commit
185fddbd66
1 changed files with 4 additions and 0 deletions
|
@ -1119,7 +1119,9 @@ void pcmbuf_fade(bool fade, bool in)
|
||||||
if (fade)
|
if (fade)
|
||||||
{
|
{
|
||||||
/* Do this on thread for now */
|
/* Do this on thread for now */
|
||||||
|
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||||
int old_prio = thread_set_priority(thread_self(), PRIORITY_REALTIME);
|
int old_prio = thread_set_priority(thread_self(), PRIORITY_REALTIME);
|
||||||
|
#endif
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
@ -1140,7 +1142,9 @@ void pcmbuf_fade(bool fade, bool in)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||||
thread_set_priority(thread_self(), old_prio);
|
thread_set_priority(thread_self(), old_prio);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue