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
mr13.3.1
Richard Fuchs 1 year ago
parent fff6cb3103
commit 06466ee843

@ -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<timer_req> reqs_process;
std::unique_lock<AmMutex> lock(reqs_m);
reqs_cond.set(false);
reqs_process.swap(reqs_backlog);

@ -125,7 +125,6 @@ class _wheeltimer:
AmMutex reqs_m;
AmCondition reqs_cond; // to wake up worker thread when a request is added
std::deque<timer_req> reqs_backlog;
std::deque<timer_req> reqs_process;
u_int32_t wall_clock; // 32 bits, "resolution" based ticks starting from epoch

Loading…
Cancel
Save