diff options
-rw-r--r-- | src/Thread.cpp | 2 |
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) { |