summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp
index 9214811..c0b570f 100644
--- a/src/Thread.cpp
+++ b/src/Thread.cpp
@@ -98,7 +98,7 @@ Thread::set_scheduling(int policy, unsigned int priority)
{
sched_param sp;
sp.sched_priority = priority;
- int result = pthread_setschedparam(_pthread, SCHED_FIFO, &sp);
+ int result = pthread_setschedparam(_pthread, policy, &sp);
if (!result) {
cout << "[" << _name << "] Set scheduling policy to ";
switch (policy) {