]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Same move treatment for value
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2024 14:08:41 +0000 (15:08 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2024 15:44:16 +0000 (16:44 +0100)
Here no refs being lowered (for the rec case) but it might save a few cycles

pdns/recursordist/mtasker.hh

index 1287e94455e4bb68e90a80cb085fe43eb429c62c..ecc0aa3bfaa3895275d6d41d84fcdd98f49d75d6 100644 (file)
@@ -299,7 +299,7 @@ int MTasker<EventKey, EventVal, Cmp>::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) {