diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-03 03:02:10 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:50 +0200 |
commit | 34bed1ab41a296f8ccccc47d7c06ab03de2018b5 (patch) | |
tree | 68ef2cba05f74fba14ec8c0e80b492a5fa587da5 /src/core/hle/kernel/global_scheduler_context.cpp | |
parent | core: Defer CoreTiming initialization. (diff) | |
download | yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.gz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.bz2 yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.lz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.xz yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.tar.zst yuzu-34bed1ab41a296f8ccccc47d7c06ab03de2018b5.zip |
Diffstat (limited to 'src/core/hle/kernel/global_scheduler_context.cpp')
-rw-r--r-- | src/core/hle/kernel/global_scheduler_context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/global_scheduler_context.cpp b/src/core/hle/kernel/global_scheduler_context.cpp index c6838649f..7c87cbada 100644 --- a/src/core/hle/kernel/global_scheduler_context.cpp +++ b/src/core/hle/kernel/global_scheduler_context.cpp @@ -17,12 +17,12 @@ GlobalSchedulerContext::GlobalSchedulerContext(KernelCore& kernel) GlobalSchedulerContext::~GlobalSchedulerContext() = default; -void GlobalSchedulerContext::AddThread(std::shared_ptr<KThread> thread) { +void GlobalSchedulerContext::AddThread(KThread* thread) { std::scoped_lock lock{global_list_guard}; - thread_list.push_back(std::move(thread)); + thread_list.push_back(thread); } -void GlobalSchedulerContext::RemoveThread(std::shared_ptr<KThread> thread) { +void GlobalSchedulerContext::RemoveThread(KThread* thread) { std::scoped_lock lock{global_list_guard}; thread_list.erase(std::remove(thread_list.begin(), thread_list.end(), thread), thread_list.end()); |