summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-07-06 02:21:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-07-06 02:21:25 +0000
commit185fddbd66a1d494842c19c63ffdd919157a15e4 (patch)
tree5562f7ca437581e3998df0d6bbb6efe9758b39c5 /apps/pcmbuf.c
parent9cc0dab3ced1f0c9205f6cba4933096eca915157 (diff)
downloadrockbox-185fddbd66a1d494842c19c63ffdd919157a15e4.tar.gz
rockbox-185fddbd66a1d494842c19c63ffdd919157a15e4.tar.bz2
rockbox-185fddbd66a1d494842c19c63ffdd919157a15e4.zip
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
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 5ef517968a..ca17437534 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1119,7 +1119,9 @@ void pcmbuf_fade(bool fade, bool in)
if (fade)
{
/* Do this on thread for now */
+#ifdef HAVE_PRIORITY_SCHEDULING
int old_prio = thread_set_priority(thread_self(), PRIORITY_REALTIME);
+#endif
while (1)
{
@@ -1140,7 +1142,9 @@ void pcmbuf_fade(bool fade, bool in)
break;
}
+#ifdef HAVE_PRIORITY_SCHEDULING
thread_set_priority(thread_self(), old_prio);
+#endif
}
}