]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more priority tweaks
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 2 Oct 2012 12:39:21 +0000 (07:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 2 Oct 2012 12:39:21 +0000 (07:39 -0500)
src/switch_apr.c
src/switch_core.c

index 2fcb2cd81e3080a1e220ed077790f9b9b4b5c213..aeb10185a93d09590e051fa6f068b2eb7bbc07d4 100644 (file)
@@ -637,7 +637,7 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_create(switch_threadattr_t **
 
        if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) {
 #ifndef WIN32
-               (*new_attr)->priority = SWITCH_PRI_NORMAL;
+               (*new_attr)->priority = SWITCH_PRI_LOW;
 #endif
        }
 
index 70d4cd5d0ff01ea1a98e894a4eec0728116d478c..4912f0abd899dd58cc5e21f2362308d81afd976e 100644 (file)
@@ -735,7 +735,7 @@ SWITCH_DECLARE(int32_t) set_realtime_priority(void)
        const char *rt = "/proc/sys/kernel/sched_rt_runtime_us";
        char data[] = "-1\n";
        struct sched_param sched = { 0 };
-       sched.sched_priority = SWITCH_PRI_REALTIME;
+       sched.sched_priority = SWITCH_PRI_LOW;
        if (sched_setscheduler(0, SCHED_RR, &sched)) {
                sched.sched_priority = 0;
                if (sched_setscheduler(0, SCHED_OTHER, &sched)) {