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