meso: add KLightSession skeleton, remove KBaseSession
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
12
mesosphere/source/processes/KLightClientSession.cpp
Normal file
12
mesosphere/source/processes/KLightClientSession.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <mesosphere/processes/KLightClientSession.hpp>
|
||||
|
||||
namespace mesosphere
|
||||
{
|
||||
|
||||
KLightClientSession::~KLightClientSession()
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
17
mesosphere/source/processes/KLightServerSession.cpp
Normal file
17
mesosphere/source/processes/KLightServerSession.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <mesosphere/processes/KLightServerSession.hpp>
|
||||
|
||||
namespace mesosphere
|
||||
{
|
||||
|
||||
KLightServerSession::~KLightServerSession()
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
bool KLightServerSession::IsSignaled() const
|
||||
{
|
||||
return false; // TODO
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
21
mesosphere/source/processes/KLightSession.cpp
Normal file
21
mesosphere/source/processes/KLightSession.cpp
Normal file
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user