summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-07-30 09:24:23 +0200
committerGitHub <noreply@github.com>2022-07-30 09:24:23 +0200
commitf8a005e26ecffe5d2b625bde1c982c69157d82ce (patch)
treedef7976e012ed4267c0d1df2d646c44b7ffe2ec6
parentMerge pull request #8677 from liamwhite/asan-wuninitialized (diff)
parentcommon: move forwarded value into SPSCQueue (diff)
downloadyuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.gz
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.bz2
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.lz
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.xz
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.zst
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.zip
-rw-r--r--src/common/threadsafe_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/threadsafe_queue.h b/src/common/threadsafe_queue.h
index f7ae9d8c2..053798e79 100644
--- a/src/common/threadsafe_queue.h
+++ b/src/common/threadsafe_queue.h
@@ -39,7 +39,7 @@ public:
template <typename Arg>
void Push(Arg&& t) {
// create the element, add it to the queue
- write_ptr->current = std::forward<Arg>(t);
+ write_ptr->current = std::move(t);
// set the next pointer to a new element ptr
// then advance the write pointer
ElementPtr* new_ptr = new ElementPtr();