diff options
| author | Liam <byteslice@airmail.cc> | 2022-07-28 19:47:39 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-07-29 15:41:57 -0400 |
| commit | 721189ef2e98b19a5543695e4c84f36a15377ba5 (patch) | |
| tree | 72e891570b03a65d9afdd73ef2f3ee7e75428ba1 /src/common/threadsafe_queue.h | |
| parent | 68dcd946b773d997a4ad492ff982e9f3590be71b (diff) | |
common: move forwarded value into SPSCQueue
Diffstat (limited to 'src/common/threadsafe_queue.h')
| -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 f7ae9d8c2f..053798e79b 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(); |
