Browse Source

MT#57466 MT#57337 set rtpe_now in thread

As this is running in a separate thread now, rtpe_now needs to be set
excplicitly in each iteration.

Fix-up for 6fe9cc9

Change-Id: Icb1ec8a27389bb48ee893a9a29e4e1c11447d61c
pull/1675/head
Richard Fuchs 3 years ago
parent
commit
86f2a8fb60
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      daemon/ice.c
  2. +1
    -0
      daemon/media_socket.c

+ 1
- 0
daemon/ice.c View File

@ -767,6 +767,7 @@ void ice_slow_timer(void) {
*/ */
void ice_slow_timer_iterator(void * dummy) { void ice_slow_timer_iterator(void * dummy) {
while (!rtpe_shutdown) { while (!rtpe_shutdown) {
gettimeofday(&rtpe_now, NULL);
ice_slow_timer(); ice_slow_timer();
thread_cancel_enable(); thread_cancel_enable();


+ 1
- 0
daemon/media_socket.c View File

@ -3510,6 +3510,7 @@ next:
} }
void kernel_stats_updater_iterator(void * dummy) { void kernel_stats_updater_iterator(void * dummy) {
while (!rtpe_shutdown) { while (!rtpe_shutdown) {
gettimeofday(&rtpe_now, NULL);
kernel_stats_updater(); kernel_stats_updater();
thread_cancel_enable(); thread_cancel_enable();


Loading…
Cancel
Save