yuzu-emu
/
yuzu
Archived
1
0
Fork 0

common: move forwarded value into SPSCQueue

This commit is contained in:
Liam 2022-07-28 19:47:39 -04:00
parent 2e46110379
commit ec64a94954
1 changed files with 1 additions and 1 deletions

View File

@ -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();