From 06466ee843af026d92c42dcb840af93d095ab388 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 20 Feb 2025 09:28:27 -0400 Subject: [PATCH] MT#62181 wheeltimer: use local reqs_process There is no need to keep this in the object as it's not used anywhere else. Change-Id: Ia94a4fa12ef925e0a3d020f859d4c746d53e945f --- core/sip/wheeltimer.cpp | 1 + core/sip/wheeltimer.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sip/wheeltimer.cpp b/core/sip/wheeltimer.cpp index 388310ae..66ecfb73 100644 --- a/core/sip/wheeltimer.cpp +++ b/core/sip/wheeltimer.cpp @@ -157,6 +157,7 @@ void _wheeltimer::turn_wheel() void _wheeltimer::process_events() { // Swap the lists for timer insertion/deletion requests and reset wake condition + std::deque reqs_process; std::unique_lock lock(reqs_m); reqs_cond.set(false); reqs_process.swap(reqs_backlog); diff --git a/core/sip/wheeltimer.h b/core/sip/wheeltimer.h index e33f35dc..b29f7ee4 100644 --- a/core/sip/wheeltimer.h +++ b/core/sip/wheeltimer.h @@ -125,7 +125,6 @@ class _wheeltimer: AmMutex reqs_m; AmCondition reqs_cond; // to wake up worker thread when a request is added std::deque reqs_backlog; - std::deque reqs_process; u_int32_t wall_clock; // 32 bits, "resolution" based ticks starting from epoch