summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-12 02:17:41 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:54 +0100
commit51589c5e2128b2d338dceac11b7252432d4955c2 (patch)
tree68f884db2539561933dbd4c2db623ffef6386f25 /src/core/hle/kernel/kernel.cpp
parentcore: hle: kernel: k_process: Remove handle table finalize, reset page table. (diff)
downloadyuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar.gz
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar.bz2
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar.lz
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar.xz
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.tar.zst
yuzu-51589c5e2128b2d338dceac11b7252432d4955c2.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index b543f4083..bf5e39266 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -107,16 +107,6 @@ struct KernelCore::Impl {
for (auto* server_port : server_ports_) {
server_port->Close();
}
- // Close all open server sessions.
- std::unordered_set<KServerSession*> server_sessions_;
- {
- std::lock_guard lk(server_sessions_lock);
- server_sessions_ = server_sessions;
- server_sessions.clear();
- }
- for (auto* server_session : server_sessions_) {
- server_session->Close();
- }
// Ensure that the object list container is finalized and properly shutdown.
object_list_container.Finalize();
@@ -697,7 +687,6 @@ struct KernelCore::Impl {
}
std::mutex server_ports_lock;
- std::mutex server_sessions_lock;
std::mutex registered_objects_lock;
std::mutex registered_in_use_objects_lock;
@@ -728,7 +717,6 @@ struct KernelCore::Impl {
std::unordered_map<std::string, ServiceInterfaceFactory> service_interface_factory;
NamedPortTable named_ports;
std::unordered_set<KServerPort*> server_ports;
- std::unordered_set<KServerSession*> server_sessions;
std::unordered_set<KAutoObject*> registered_objects;
std::unordered_set<KAutoObject*> registered_in_use_objects;
@@ -932,16 +920,6 @@ KClientPort* KernelCore::CreateNamedServicePort(std::string name) {
return impl->CreateNamedServicePort(std::move(name));
}
-void KernelCore::RegisterServerSession(KServerSession* server_session) {
- std::lock_guard lk(impl->server_sessions_lock);
- impl->server_sessions.insert(server_session);
-}
-
-void KernelCore::UnregisterServerSession(KServerSession* server_session) {
- std::lock_guard lk(impl->server_sessions_lock);
- impl->server_sessions.erase(server_session);
-}
-
void KernelCore::RegisterKernelObject(KAutoObject* object) {
std::lock_guard lk(impl->registered_objects_lock);
impl->registered_objects.insert(object);