mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 12:14:13 +00:00
more priority tweaks
This commit is contained in:
1 parent
8733a2c895
commit
464155c5cd
16 files changed
+49
-34
No files matched your search
@@ -2272,7 +2272,7 @@ void cc_agent_dispatch_thread_start(void)
|
||||
switch_threadattr_create(&thd_attr, globals.pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
|
||||
switch_thread_create(&thread, thd_attr, cc_agent_dispatch_thread_run, NULL, globals.pool);
|
||||
}
|
||||
|
||||
|
||||
@@ -7748,7 +7748,7 @@ static void launch_conference_thread(conference_obj_t *conference)
|
||||
switch_set_flag_locked(conference, CFLAG_RUNNING);
|
||||
switch_threadattr_create(&thd_attr, conference->pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_mutex_lock(globals.hash_mutex);
|
||||
switch_mutex_unlock(globals.hash_mutex);
|
||||
|
||||
@@ -3930,7 +3930,7 @@ void vm_event_thread_start(void)
|
||||
switch_threadattr_create(&thd_attr, globals.pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_IMPORTANT);
|
||||
switch_thread_create(&thread, thd_attr, vm_event_thread_run, NULL, globals.pool);
|
||||
}
|
||||
|
||||
|
||||
@@ -288,7 +288,10 @@ private:
|
||||
return true;
|
||||
|
||||
/*
|
||||
//BUG in Freeswitch
|
||||
//BUG in Freeswitch
|
||||
|
||||
THANKS FOR NOT REPORTING IT SO WE MUST LIVE WITH A PROBLEM YOU KNOW ABOUT .....
|
||||
|
||||
if(switch_threadattr_priority_increase(
|
||||
(switch_threadattr_t *)_thread_info->_attribute) != 0)
|
||||
return false;
|
||||
|
||||
@@ -1741,7 +1741,7 @@ static switch_status_t load_config(int reload_type)
|
||||
switch_threadattr_create(&skypopen_api_thread_attr, skypopen_module_pool);
|
||||
switch_threadattr_detach_set(skypopen_api_thread_attr, 0);
|
||||
switch_threadattr_stacksize_set(skypopen_api_thread_attr, SWITCH_THREAD_STACKSIZE);
|
||||
//switch_threadattr_priority_increase(skypopen_api_thread_attr);
|
||||
|
||||
switch_thread_create(&globals.SKYPOPEN_INTERFACES[interface_id].skypopen_api_thread,
|
||||
skypopen_api_thread_attr, skypopen_do_skypeapi_thread, &globals.SKYPOPEN_INTERFACES[interface_id],
|
||||
skypopen_module_pool);
|
||||
@@ -1751,7 +1751,7 @@ static switch_status_t load_config(int reload_type)
|
||||
switch_threadattr_create(&skypopen_signaling_thread_attr, skypopen_module_pool);
|
||||
switch_threadattr_detach_set(skypopen_signaling_thread_attr, 0);
|
||||
switch_threadattr_stacksize_set(skypopen_signaling_thread_attr, SWITCH_THREAD_STACKSIZE);
|
||||
//switch_threadattr_priority_increase(skypopen_signaling_thread_attr);
|
||||
|
||||
switch_thread_create(&globals.SKYPOPEN_INTERFACES[interface_id].skypopen_signaling_thread, skypopen_signaling_thread_attr,
|
||||
skypopen_signaling_thread_func, &globals.SKYPOPEN_INTERFACES[interface_id], skypopen_module_pool);
|
||||
|
||||
@@ -2272,7 +2272,7 @@ int start_audio_threads(private_t *tech_pvt)
|
||||
switch_threadattr_create(&tcp_srv_thread_thd_attr, skypopen_module_pool);
|
||||
switch_threadattr_detach_set(tcp_srv_thread_thd_attr, 0);
|
||||
switch_threadattr_stacksize_set(tcp_srv_thread_thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(tcp_srv_thread_thd_attr);
|
||||
switch_threadattr_priority_set(tcp_srv_thread_thd_attr, SWITCH_PRI_REALTIME);
|
||||
switch_mutex_lock(tech_pvt->mutex_thread_audio_srv);
|
||||
//DEBUGA_SKYPE("debugging_hangup srv lock\n", SKYPOPEN_P_LOG);
|
||||
if (switch_thread_create(&tech_pvt->tcp_srv_thread, tcp_srv_thread_thd_attr, skypopen_do_tcp_srv_thread, tech_pvt, skypopen_module_pool) ==
|
||||
@@ -2290,7 +2290,7 @@ int start_audio_threads(private_t *tech_pvt)
|
||||
switch_threadattr_create(&tcp_cli_thread_thd_attr, skypopen_module_pool);
|
||||
switch_threadattr_detach_set(tcp_cli_thread_thd_attr, 0);
|
||||
switch_threadattr_stacksize_set(tcp_cli_thread_thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(tcp_cli_thread_thd_attr);
|
||||
switch_threadattr_priority_set(tcp_cli_thread_thd_attr, SWITCH_PRI_REALTIME);
|
||||
switch_mutex_lock(tech_pvt->mutex_thread_audio_cli);
|
||||
//DEBUGA_SKYPE("debugging_hangup cli lock\n", SKYPOPEN_P_LOG);
|
||||
if (switch_thread_create(&tech_pvt->tcp_cli_thread, tcp_cli_thread_thd_attr, skypopen_do_tcp_cli_thread, tech_pvt, skypopen_module_pool) ==
|
||||
|
||||
@@ -1647,7 +1647,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_increase(thd_attr);
|
||||
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,
|
||||
@@ -2373,7 +2373,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_increase(thd_attr);
|
||||
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)) {
|
||||
@@ -2753,7 +2753,7 @@ void launch_sofia_profile_thread(sofia_profile_t *profile)
|
||||
switch_threadattr_create(&thd_attr, profile->pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_REALTIME);
|
||||
switch_thread_create(&thread, thd_attr, sofia_profile_thread_run, profile, profile->pool);
|
||||
}
|
||||
|
||||
@@ -6114,7 +6114,6 @@ static void launch_media_on_hold(switch_core_session_t *session)
|
||||
switch_threadattr_create(&thd_attr, switch_core_session_get_pool(session));
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_thread_create(&thread, thd_attr, media_on_hold_thread_run, session, switch_core_session_get_pool(session));
|
||||
}
|
||||
|
||||
@@ -7198,7 +7197,6 @@ static void launch_nightmare_xfer(nightmare_xfer_helper_t *nhelper)
|
||||
switch_threadattr_create(&thd_attr, nhelper->pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_thread_create(&thread, thd_attr, nightmare_xfer_thread_run, nhelper, nhelper->pool);
|
||||
}
|
||||
|
||||
|
||||
@@ -1577,7 +1577,7 @@ void sofia_presence_event_thread_start(void)
|
||||
switch_threadattr_create(&thd_attr, mod_sofia_globals.pool);
|
||||
switch_threadattr_detach_set(thd_attr, 1);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_IMPORTANT);
|
||||
switch_thread_create(&thread, thd_attr, sofia_presence_event_thread_run, NULL, mod_sofia_globals.pool);
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ static void launch_monitor_thread(xml_binding_t *binding)
|
||||
|
||||
switch_threadattr_create(&thd_attr, globals.pool);
|
||||
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
|
||||
switch_threadattr_priority_increase(thd_attr);
|
||||
switch_threadattr_priority_set(thd_attr, SWITCH_PRI_IMPORTANT);
|
||||
switch_thread_create(&binding->thread, thd_attr, monitor_thread_run, binding, globals.pool);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user