summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2022-07-30 03:24:23 -0400
committerGravatar GitHub2022-07-30 03:24:23 -0400
commitf8a005e26ecffe5d2b625bde1c982c69157d82ce (patch)
treedef7976e012ed4267c0d1df2d646c44b7ffe2ec6
parentMerge pull request #8677 from liamwhite/asan-wuninitialized (diff)
parentcommon: move forwarded value into SPSCQueue (diff)
downloadyuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.gz
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.tar.xz
yuzu-f8a005e26ecffe5d2b625bde1c982c69157d82ce.zip
Merge pull request #8664 from liamwhite/monkey-compiler-v12-1
common: move forwarded value into SPSCQueue
-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:
39 template <typename Arg> 39 template <typename Arg>
40 void Push(Arg&& t) { 40 void Push(Arg&& t) {
41 // create the element, add it to the queue 41 // create the element, add it to the queue
42 write_ptr->current = std::forward<Arg>(t); 42 write_ptr->current = std::move(t);
43 // set the next pointer to a new element ptr 43 // set the next pointer to a new element ptr
44 // then advance the write pointer 44 // then advance the write pointer
45 ElementPtr* new_ptr = new ElementPtr(); 45 ElementPtr* new_ptr = new ElementPtr();