diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 01:02:47 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 01:34:31 +0200 |
commit | 46458e72846f2611f738e41ece6336472f5288d5 (patch) | |
tree | df865f3749a15b3c7079d12d8e66df0fbb7ed05a /src/core/hle/kernel/scheduler.cpp | |
parent | Merge pull request #681 from lioncash/const (diff) | |
download | yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar.gz yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar.bz2 yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar.lz yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar.xz yuzu-46458e72846f2611f738e41ece6336472f5288d5.tar.zst yuzu-46458e72846f2611f738e41ece6336472f5288d5.zip |
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index ca8807e19..1f4abfbe8 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <utility> + #include "core/core.h" #include "core/core_timing.h" #include "core/hle/kernel/process.h" @@ -113,7 +115,7 @@ void Scheduler::Reschedule() { void Scheduler::AddThread(SharedPtr<Thread> thread, u32 priority) { std::lock_guard<std::mutex> lock(scheduler_mutex); - thread_list.push_back(thread); + thread_list.push_back(std::move(thread)); ready_queue.prepare(priority); } |