diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-07-30 09:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 09:24:23 +0200 |
commit | f8a005e26ecffe5d2b625bde1c982c69157d82ce (patch) | |
tree | def7976e012ed4267c0d1df2d646c44b7ffe2ec6 | |
parent | Merge pull request #8677 from liamwhite/asan-wuninitialized (diff) | |
parent | common: move forwarded value into SPSCQueue (diff) | |
download | yuzu-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 |
Diffstat (limited to '')
-rw-r--r-- | src/common/threadsafe_queue.h | 2 |
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(); |