mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
disable cpu timer affinity by default but make it still possible via config and fix stray constant in tipping_point
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16679 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1301,8 +1301,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||
|
||||
runtime.running = 1;
|
||||
runtime.tipping_point = 1000000;
|
||||
runtime.timer_affinity = -1;
|
||||
runtime.initiated = switch_time_now();
|
||||
|
||||
|
||||
switch_scheduler_add_task(switch_epoch_time_now(NULL), heartbeat_callback, "heartbeat", "core", 0, NULL, SSHF_NONE | SSHF_NO_DEL);
|
||||
|
||||
switch_uuid_get(&uuid);
|
||||
@@ -1443,6 +1444,12 @@ static void switch_load_core_config(const char *file)
|
||||
switch_core_session_limit(atoi(val));
|
||||
} else if (!strcasecmp(var, "tipping-point") && !zstr(val)) {
|
||||
runtime.tipping_point = atoi(val);
|
||||
} else if (!strcasecmp(var, "timer-affinity") && !zstr(val)) {
|
||||
if (!strcasecmp(val, "disabled")) {
|
||||
runtime.timer_affinity = -1;
|
||||
} else {
|
||||
runtime.timer_affinity = atoi(val);
|
||||
}
|
||||
} else if (!strcasecmp(var, "rtp-start-port") && !zstr(val)) {
|
||||
switch_rtp_set_start_port((switch_port_t) atoi(val));
|
||||
} else if (!strcasecmp(var, "rtp-end-port") && !zstr(val)) {
|
||||
|
Reference in New Issue
Block a user