#include #include #include #include namespace mesosphere { KServerPort::~KServerPort() { KScopedCriticalSection critsec{}; parent->isServerAlive = false; // TODO } bool KServerPort::IsSignaled() const { if (!parent->isLight) { return false; // TODO } else { return !lightServerSessions.empty(); } } Result KServerPort::AddLightServerSession(KLightServerSession &lightServerSession) { KScopedCriticalSection critsec{}; bool wasEmpty = lightServerSessions.empty(); lightServerSessions.push_back(lightServerSession); if (wasEmpty && !lightServerSessions.empty()) { NotifyWaiters(); } return ResultSuccess(); } }