diff options
| author | 2020-07-16 13:28:10 -0400 | |
|---|---|---|
| committer | 2020-07-16 13:30:56 -0400 | |
| commit | f0125b2be8ba34aaf07b8c9d04b866d29ceea53a (patch) | |
| tree | c9fd8ce00f4ff0fbec3c5767db1dad5d22327085 /src/core/hle/kernel/thread.cpp | |
| parent | cpu_manager: Remove unused preemption_count variable (diff) | |
| download | yuzu-f0125b2be8ba34aaf07b8c9d04b866d29ceea53a.tar.gz yuzu-f0125b2be8ba34aaf07b8c9d04b866d29ceea53a.tar.xz yuzu-f0125b2be8ba34aaf07b8c9d04b866d29ceea53a.zip | |
cpu_manager: Mark function getters as static
All these do are return std::function instances of static functions, so
these can be used without an instance of the CPU manager.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 67148fa6d..d132aba34 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -155,7 +155,7 @@ ResultVal<std::shared_ptr<Thread>> Thread::Create(Core::System& system, ThreadTy | |||
| 155 | std::string name, VAddr entry_point, u32 priority, | 155 | std::string name, VAddr entry_point, u32 priority, |
| 156 | u64 arg, s32 processor_id, VAddr stack_top, | 156 | u64 arg, s32 processor_id, VAddr stack_top, |
| 157 | Process* owner_process) { | 157 | Process* owner_process) { |
| 158 | std::function<void(void*)> init_func = system.GetCpuManager().GetGuestThreadStartFunc(); | 158 | std::function<void(void*)> init_func = Core::CpuManager::GetGuestThreadStartFunc(); |
| 159 | void* init_func_parameter = system.GetCpuManager().GetStartFuncParamater(); | 159 | void* init_func_parameter = system.GetCpuManager().GetStartFuncParamater(); |
| 160 | return Create(system, type_flags, name, entry_point, priority, arg, processor_id, stack_top, | 160 | return Create(system, type_flags, name, entry_point, priority, arg, processor_id, stack_top, |
| 161 | owner_process, std::move(init_func), init_func_parameter); | 161 | owner_process, std::move(init_func), init_func_parameter); |