diff options
| author | bunnei <bunneidev@gmail.com> | 2019-04-02 21:40:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-02 21:40:39 -0400 |
| commit | e796351a0de70d75993e326b8828229416216d91 (patch) | |
| tree | 0f5b340a115a98383202f3a848987ddd3ce361b2 /src/core/hle/kernel/process.cpp | |
| parent | 57279e198158297c44da6164d681f1738b710da1 (diff) | |
| parent | 28719ee3b4884d182126bddf639e1711b0744b22 (diff) | |
Merge pull request #2270 from lioncash/plist
kernel/svc: Implement svcGetProcessList and svcGetThreadList
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 955769503..52f253d1e 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -80,6 +80,14 @@ u64 Process::GetTotalPhysicalMemoryUsed() const { return vm_manager.GetCurrentHeapSize() + main_thread_stack_size + code_memory_size; } +void Process::RegisterThread(const Thread* thread) { + thread_list.push_back(thread); +} + +void Process::UnregisterThread(const Thread* thread) { + thread_list.remove(thread); +} + ResultCode Process::ClearSignalState() { if (status == ProcessStatus::Exited) { LOG_ERROR(Kernel, "called on a terminated process instance."); |
