FS-7066 FS-7253 FS-7231 #comment remove TFD_TIMER_ABSTIME as it seems to cause some load issues on some machines
This commit is contained in:
parent
4780a7e2af
commit
acce943b5d
|
@ -418,7 +418,7 @@ static switch_status_t timerfd_start_interval(interval_timer_t *it, int interval
|
||||||
val.it_value.tv_sec = 0;
|
val.it_value.tv_sec = 0;
|
||||||
val.it_value.tv_nsec = 100000;
|
val.it_value.tv_nsec = 100000;
|
||||||
|
|
||||||
if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &val, NULL) < 0) {
|
if (timerfd_settime(fd, 0, &val, NULL) < 0) {
|
||||||
close(fd);
|
close(fd);
|
||||||
return SWITCH_STATUS_GENERR;
|
return SWITCH_STATUS_GENERR;
|
||||||
}
|
}
|
||||||
|
@ -1041,7 +1041,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime)
|
||||||
spec.it_value.tv_sec = spec.it_interval.tv_sec;
|
spec.it_value.tv_sec = spec.it_interval.tv_sec;
|
||||||
spec.it_value.tv_nsec = spec.it_interval.tv_nsec;
|
spec.it_value.tv_nsec = spec.it_interval.tv_nsec;
|
||||||
|
|
||||||
if (timerfd_settime(tfd, TFD_TIMER_ABSTIME, &spec, NULL)) {
|
if (timerfd_settime(tfd, 0, &spec, NULL)) {
|
||||||
close(tfd);
|
close(tfd);
|
||||||
tfd = -1;
|
tfd = -1;
|
||||||
}
|
}
|
||||||
|
@ -1109,7 +1109,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime)
|
||||||
#ifdef HAVE_TIMERFD_CREATE
|
#ifdef HAVE_TIMERFD_CREATE
|
||||||
if (last_MICROSECONDS_PER_TICK != runtime.microseconds_per_tick) {
|
if (last_MICROSECONDS_PER_TICK != runtime.microseconds_per_tick) {
|
||||||
spec.it_interval.tv_nsec = runtime.microseconds_per_tick * 1000;
|
spec.it_interval.tv_nsec = runtime.microseconds_per_tick * 1000;
|
||||||
timerfd_settime(tfd, TFD_TIMER_ABSTIME, &spec, NULL);
|
timerfd_settime(tfd, 0, &spec, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
last_MICROSECONDS_PER_TICK = runtime.microseconds_per_tick;
|
last_MICROSECONDS_PER_TICK = runtime.microseconds_per_tick;
|
||||||
|
|
Loading…
Reference in New Issue