summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2011-02-13 22:19:33 +0000
committerTim E. Real <termtech@rogers.com>2011-02-13 22:19:33 +0000
commitb1c3f0d7ccce8feafa9f043aa5a4ee32bc78624e (patch)
treee478c71255065f0f0d0ab883771a8b2b4c244a3c /muse2/muse/app.cpp
parentab1e5cf55eec23a64eed68835a5f0bd6b2ad0a39 (diff)
Fixed MusE failing with non-RT kernel.
Fixed dummy audio thread not running FIFO with RT kernel.
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 55f840b6..c1e86a2c 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -1246,6 +1246,11 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
panicToolbar->setObjectName("Panic");
panicToolbar->addAction(panicAction);
+
+ //rlimit lim;
+ //getrlimit(RLIMIT_RTPRIO, &lim);
+ //printf("RLIMIT_RTPRIO soft:%d hard:%d\n", lim.rlim_cur, lim.rlim_max); // Reported 80, 80 even with non-RT kernel.
+
if (realTimePriority < sched_get_priority_min(SCHED_FIFO))
realTimePriority = sched_get_priority_min(SCHED_FIFO);
else if (realTimePriority > sched_get_priority_max(SCHED_FIFO))