some priority queuing tweaks for performance

This commit is contained in:
Anthony Minessale committed 2012-10-01 11:47:26 -05:00
1 parent bf060c6396
commit 8733a2c895
7 files changed
+16 -5

No files matched your search

+1 -1
View File
@@ -736,7 +736,7 @@ SWITCH_DECLARE(int32_t) set_realtime_priority(void)
char data[] = "-1\n";
struct sched_param sched = { 0 };
sched.sched_priority = 1;
if (sched_setscheduler(0, SCHED_FIFO, &sched)) {
if (sched_setscheduler(0, SCHED_RR, &sched)) {
sched.sched_priority = 0;
if (sched_setscheduler(0, SCHED_OTHER, &sched)) {
return -1;