summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-03 03:40:39 +0200
committerGitHub <noreply@github.com>2019-04-03 03:40:39 +0200
commite796351a0de70d75993e326b8828229416216d91 (patch)
tree0f5b340a115a98383202f3a848987ddd3ce361b2 /src/core/hle/kernel/process.cpp
parentMerge pull request #2313 from lioncash/reslimit (diff)
parentkernel/svc: Implement svcGetThreadList (diff)
downloadyuzu-e796351a0de70d75993e326b8828229416216d91.tar
yuzu-e796351a0de70d75993e326b8828229416216d91.tar.gz
yuzu-e796351a0de70d75993e326b8828229416216d91.tar.bz2
yuzu-e796351a0de70d75993e326b8828229416216d91.tar.lz
yuzu-e796351a0de70d75993e326b8828229416216d91.tar.xz
yuzu-e796351a0de70d75993e326b8828229416216d91.tar.zst
yuzu-e796351a0de70d75993e326b8828229416216d91.zip
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp8
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.");