diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-07-30 03:24:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 03:24:23 -0400 |
commit | f8a005e26ecffe5d2b625bde1c982c69157d82ce (patch) | |
tree | def7976e012ed4267c0d1df2d646c44b7ffe2ec6 | |
parent | 417580be2cbe2329f60bf92142b03afde4b26fd1 (diff) | |
parent | ec64a94954535b8be4a045150cffb4dc3afb427a (diff) |
Merge pull request #8664 from liamwhite/monkey-compiler-v12-1
common: move forwarded value into SPSCQueue
-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(); |