summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-19 23:14:55 +0200
committerGitHub <noreply@github.com>2023-07-19 23:14:55 +0200
commit014ca709c939512569abc7765b031b496c62a884 (patch)
treed43c24e639c9102e63c48a53ee3c8cefaee6f321 /src/core/hle/kernel/k_thread.cpp
parentMerge pull request #11114 from Kelebek1/warnings (diff)
parentdemangle: Update to llvm/llvm-project@ecbc812e0cca (diff)
downloadyuzu-014ca709c939512569abc7765b031b496c62a884.tar
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.gz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.bz2
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.lz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.xz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.zst
yuzu-014ca709c939512569abc7765b031b496c62a884.zip
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index adb6ec581..d88909889 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -302,12 +302,12 @@ Result KThread::InitializeServiceThread(Core::System& system, KThread* thread,
std::function<void()>&& func, s32 prio, s32 virt_core,
KProcess* owner) {
system.Kernel().GlobalSchedulerContext().AddThread(thread);
- std::function<void()> func2{[&system, func{std::move(func)}] {
+ std::function<void()> func2{[&system, func_{std::move(func)}] {
// Similar to UserModeThreadStarter.
system.Kernel().CurrentScheduler()->OnThreadStart();
// Run the guest function.
- func();
+ func_();
// Exit.
Svc::ExitThread(system);