diff options
| author | 2021-03-05 17:15:35 -0800 | |
|---|---|---|
| committer | 2021-03-05 17:15:35 -0800 | |
| commit | 4cf5b860bddbce9a5dd121ab388bdf369a877e02 (patch) | |
| tree | dee4656dedce8b55888e4199b0013c9fce167e05 /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #6029 from Morph1984/compile-utf8 (diff) | |
| parent | hle: kernel: KThread: Rework dummy threads & fix memory leak. (diff) | |
| download | yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.gz yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.xz yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.zip | |
Merge pull request #6036 from bunnei/thread-leak
hle: kernel: KThread: Rework dummy threads & fix memory leak.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index cc8fa6576..326d3b9ec 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1532,8 +1532,9 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e | |||
| 1532 | std::shared_ptr<KThread> thread; | 1532 | std::shared_ptr<KThread> thread; |
| 1533 | { | 1533 | { |
| 1534 | KScopedLightLock lk{process.GetStateLock()}; | 1534 | KScopedLightLock lk{process.GetStateLock()}; |
| 1535 | CASCADE_RESULT(thread, KThread::Create(system, ThreadType::User, "", entry_point, priority, | 1535 | CASCADE_RESULT(thread, |
| 1536 | arg, core_id, stack_bottom, &process)); | 1536 | KThread::CreateUserThread(system, ThreadType::User, "", entry_point, |
| 1537 | priority, arg, core_id, stack_bottom, &process)); | ||
| 1537 | } | 1538 | } |
| 1538 | 1539 | ||
| 1539 | const auto new_thread_handle = process.GetHandleTable().Create(thread); | 1540 | const auto new_thread_handle = process.GetHandleTable().Create(thread); |