From 9ed4b3460837fecebcd6825f6ea00e0afaf5eb19 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 28 Oct 2024 15:08:41 +0100 Subject: [PATCH] Same move treatment for value Here no refs being lowered (for the rec case) but it might save a few cycles --- pdns/recursordist/mtasker.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/mtasker.hh b/pdns/recursordist/mtasker.hh index 1287e94455..ecc0aa3bfa 100644 --- a/pdns/recursordist/mtasker.hh +++ b/pdns/recursordist/mtasker.hh @@ -299,7 +299,7 @@ int MTasker::waitEvent(EventKey& key, EventVal* val, un d_threads[d_tid].dt.start(); #endif if (val && d_waitstatus == Answer) { - *val = d_waitval; + *val = std::move(d_waitval); } d_tid = waiter.tid; if ((char*)&waiter < d_threads[d_tid].highestStackSeen) { -- 2.47.2