diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index f33600ca5..ebe7582c6 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -1089,15 +1089,15 @@ static std::jthread RunHostThreadFunc(KernelCore& kernel, KProcess* process, | |||
| 1089 | KThread::Register(kernel, thread); | 1089 | KThread::Register(kernel, thread); |
| 1090 | 1090 | ||
| 1091 | return std::jthread( | 1091 | return std::jthread( |
| 1092 | [&kernel, thread, thread_name{std::move(thread_name)}, func{std::move(func)}] { | 1092 | [&kernel, thread, thread_name_{std::move(thread_name)}, func_{std::move(func)}] { |
| 1093 | // Set the thread name. | 1093 | // Set the thread name. |
| 1094 | Common::SetCurrentThreadName(thread_name.c_str()); | 1094 | Common::SetCurrentThreadName(thread_name_.c_str()); |
| 1095 | 1095 | ||
| 1096 | // Set the thread as current. | 1096 | // Set the thread as current. |
| 1097 | kernel.RegisterHostThread(thread); | 1097 | kernel.RegisterHostThread(thread); |
| 1098 | 1098 | ||
| 1099 | // Run the callback. | 1099 | // Run the callback. |
| 1100 | func(); | 1100 | func_(); |
| 1101 | 1101 | ||
| 1102 | // Close the thread. | 1102 | // Close the thread. |
| 1103 | // This will free the process if it is the last reference. | 1103 | // This will free the process if it is the last reference. |