mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
improve thread pool logic
This commit is contained in:
1 parent
25001e857f
commit
012e321f61
3 files changed
+67
-11
No files matched your search
@@ -1792,6 +1792,12 @@ static void switch_load_core_config(const char *file)
|
||||
switch_core_hash_insert(runtime.ptimes, "isac", &d_30);
|
||||
switch_core_hash_insert(runtime.ptimes, "G723", &d_30);
|
||||
|
||||
if (runtime.cpu_count == 1) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
|
||||
"Implicitly setting events-use-dispatch based on a single CPU\n");
|
||||
runtime.events_use_dispatch = 1;
|
||||
}
|
||||
|
||||
if ((xml = switch_xml_open_cfg(file, &cfg, NULL))) {
|
||||
switch_xml_t settings, param;
|
||||
|
||||
|
||||
Reference in new issue
Block a user