summaryrefslogtreecommitdiffstats
path: root/src/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Thread.cpp')
-rw-r--r--src/Thread.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp
index 34d7b65..5287beb 100644
--- a/src/Thread.cpp
+++ b/src/Thread.cpp
@@ -116,7 +116,7 @@ Thread::join()
pthread_join(_impl->pthread, NULL);
}
-void
+bool
Thread::set_scheduling(bool realtime, unsigned priority)
{
sched_param sp;
@@ -128,9 +128,10 @@ Thread::set_scheduling(bool realtime, unsigned priority)
% (realtime ? "realtime" : "normal")
% sp.sched_priority);
} else {
- LOG(info) << (fmt("Unable to set scheduling policy (%1%)\n")
+ LOG(warn) << (fmt("Unable to set scheduling policy (%1%)\n")
% strerror(result));
}
+ return !result;
}
} // namespace Raul