Skip to content

Commit

Permalink
Remove the move call in two instances where it really does not add an…
Browse files Browse the repository at this point in the history
…ything
  • Loading branch information
omoerbeek committed Nov 4, 2024
1 parent 2d5af47 commit dc457c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdns/recursordist/mtasker.hh
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ int MTasker<EventKey, EventVal, Cmp>::sendEvent(const EventKey& key, const Event
d_waitval = *val;
}
d_tid = waiter->tid; // set tid
d_eventkey = std::move(waiter->key); // pass waitEvent the exact key it was woken for
d_eventkey = waiter->key; // pass waitEvent the exact key it was woken for
d_used = false;
auto userspace = std::move(waiter->context);
d_waiters.erase(waiter); // removes the waitpoint
Expand Down Expand Up @@ -464,7 +464,7 @@ bool MTasker<Key, Val, Cmp>::schedule(const struct timeval& now)
for (auto i = ttdindex.begin(); i != ttdindex.end();) {
if (i->ttd.tv_sec && i->ttd < now) {
d_waitstatus = TimeOut;
d_eventkey = std::move(i->key); // pass waitEvent the exact key it was woken for
d_eventkey = i->key; // pass waitEvent the exact key it was woken for
d_used = false;
auto ucontext = i->context;
d_tid = i->tid;
Expand Down

0 comments on commit dc457c4

Please sign in to comment.