mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add soft timer support for fd per timer use enable-softtimer-timerfd=broadcast in switch.conf.xml for orig behaviour
This commit is contained in:
@@ -1934,7 +1934,19 @@ static void switch_load_core_config(const char *file)
|
||||
} else if (!strcasecmp(var, "enable-monotonic-timing")) {
|
||||
switch_time_set_monotonic(switch_true(val));
|
||||
} else if (!strcasecmp(var, "enable-softtimer-timerfd")) {
|
||||
switch_time_set_timerfd(switch_true(val));
|
||||
int ival = 0;
|
||||
if (val) {
|
||||
if (switch_true(val)) {
|
||||
ival = 2;
|
||||
} else {
|
||||
if (strcasecmp(val, "broadcast")) {
|
||||
ival = 1;
|
||||
} else if (strcasecmp(val, "fd-per-timer")) {
|
||||
ival = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
switch_time_set_timerfd(ival);
|
||||
} else if (!strcasecmp(var, "enable-clock-nanosleep")) {
|
||||
switch_time_set_nanosleep(switch_true(val));
|
||||
} else if (!strcasecmp(var, "enable-cond-yield")) {
|
||||
|
Reference in New Issue
Block a user