meso: add KLightSession skeleton, remove KBaseSession

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:08 -07:00
1 parent eb7e4153d1
commit 9c8f818c29
14 files changed
+165 -159

No files matched your search

@@ -1,10 +0,0 @@
#include <mesosphere/processes/KBaseClientSession.hpp>
namespace mesosphere
{
KBaseClientSession::~KBaseClientSession()
{
}
}
@@ -1,11 +0,0 @@
#include <mesosphere/processes/KBaseServerSession.hpp>
namespace mesosphere
{
KBaseServerSession::~KBaseServerSession()
{
// Children classes will lock critical section + set client "isRemoteAlive"
}
}
@@ -1,17 +0,0 @@
#include <mesosphere/processes/KBaseSession.hpp>
namespace mesosphere
{
KBaseSession::~KBaseSession()
{
}
Result KBaseSession::Initialize()
{
SetClientServerParent();
return ResultSuccess();
}
}
@@ -0,0 +1,12 @@
#include <mesosphere/processes/KLightClientSession.hpp>
namespace mesosphere
{
KLightClientSession::~KLightClientSession()
{
//TODO
}
}
@@ -0,0 +1,17 @@
#include <mesosphere/processes/KLightServerSession.hpp>
namespace mesosphere
{
KLightServerSession::~KLightServerSession()
{
//TODO
}
bool KLightServerSession::IsSignaled() const
{
return false; // TODO
}
}
@@ -0,0 +1,21 @@
#include <mesosphere/processes/KLightSession.hpp>
#include <mesosphere/core/KCoreContext.hpp>
namespace mesosphere
{
KLightSession::~KLightSession()
{
}
Result KLightSession::Initialize()
{
SetClientServerParent();
client.isRemoteActive = true;
server.isRemoteActive = true;
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
return ResultSuccess();
}
}