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.h | |
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.h')
-rw-r--r-- | src/core/hle/kernel/global_scheduler_context.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/global_scheduler_context.h b/src/core/hle/kernel/global_scheduler_context.h index 11592843e..ba8b67fd1 100644 --- a/src/core/hle/kernel/global_scheduler_context.h +++ b/src/core/hle/kernel/global_scheduler_context.h @@ -38,13 +38,13 @@ public: ~GlobalSchedulerContext(); /// Adds a new thread to the scheduler - void AddThread(std::shared_ptr<KThread> thread); + void AddThread(KThread* thread); /// Removes a thread from the scheduler - void RemoveThread(std::shared_ptr<KThread> thread); + void RemoveThread(KThread* thread); /// Returns a list of all threads managed by the scheduler - [[nodiscard]] const std::vector<std::shared_ptr<KThread>>& GetThreadList() const { + [[nodiscard]] const std::vector<KThread*>& GetThreadList() const { return thread_list; } @@ -79,7 +79,7 @@ private: LockType scheduler_lock; /// Lists all thread ids that aren't deleted/etc. - std::vector<std::shared_ptr<KThread>> thread_list; + std::vector<KThread*> thread_list; Common::SpinLock global_list_guard{}; }; |