]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
some more priority tweaks
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Oct 2012 19:10:22 +0000 (14:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Oct 2012 19:10:22 +0000 (14:10 -0500)
src/mod/endpoints/mod_sofia/sofia.c
src/switch_core.c

index a74a490da846899d8bcadc7f9c3900c23296e6dd..26ff378ee41a227b6a41f378109ff40cc0d3794d 100644 (file)
@@ -1650,7 +1650,7 @@ void sofia_msg_thread_start(int idx)
 
                                switch_threadattr_create(&thd_attr, mod_sofia_globals.pool);
                                switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
-                               switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
+                               //switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
                                switch_thread_create(&mod_sofia_globals.msg_queue_thread[i], 
                                                                         thd_attr, 
                                                                         sofia_msg_thread_run, 
@@ -2376,7 +2376,7 @@ switch_thread_t *launch_sofia_worker_thread(sofia_profile_t *profile)
 
        switch_threadattr_create(&thd_attr, profile->pool);
        switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
-       switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
+       //switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
        switch_thread_create(&thread, thd_attr, sofia_profile_worker_thread_run, profile, profile->pool);
 
        while (!sofia_test_pflag(profile, PFLAG_WORKER_RUNNING)) {
index 4912f0abd899dd58cc5e21f2362308d81afd976e..4e47519757b9a6fb44b1a0a45f2ce13ed79e4221 100644 (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 = SWITCH_PRI_LOW;
-       if (sched_setscheduler(0, SCHED_RR, &sched)) {
+       if (sched_setscheduler(0, SCHED_FIFO, &sched)) {
                sched.sched_priority = 0;
                if (sched_setscheduler(0, SCHED_OTHER, &sched)) {
                        return -1;