kern: SvcConnectToNamedPort

This commit is contained in:
Michael Scire committed 2020-07-10 11:55:33 -07:00
1 parent a2eb93fde8
commit 7400a8ff68
15 files changed
+376 -15

No files matched your search

@@ -89,7 +89,33 @@ namespace ams::kern {
if (this->IsLight()) {
return !this->light_session_list.empty();
} else {
return this->session_list.empty();
return !this->session_list.empty();
}
}
void KServerPort::EnqueueSession(KServerSession *session) {
MESOSPHERE_ASSERT_THIS();
MESOSPHERE_ASSERT(!this->IsLight());
KScopedSchedulerLock sl;
/* Add the session to our queue. */
this->session_list.push_back(*session);
if (this->session_list.size() == 1) {
this->NotifyAvailable();
}
}
void KServerPort::EnqueueSession(KLightServerSession *session) {
MESOSPHERE_ASSERT_THIS();
MESOSPHERE_ASSERT(this->IsLight());
KScopedSchedulerLock sl;
/* Add the session to our queue. */
this->light_session_list.push_back(*session);
if (this->light_session_list.size() == 1) {
this->NotifyAvailable();
}
}