meso: KPort mini skeleton

This commit is contained in:
TuxSH
2018-11-12 14:52:57 +01:00
committed by Michael Scire
parent acf32f841c
commit 173bde2eca
6 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <mesosphere/processes/KPort.hpp>
#include <mesosphere/threading/KScopedCriticalSection.hpp>
#include <mesosphere/threading/KThread.hpp>
#include <mesosphere/core/KCoreContext.hpp>
namespace mesosphere
{
KClientPort::~KClientPort()
{
KScopedCriticalSection critsec{};
parent->isClientAlive = false;
}
bool KClientPort::IsSignaled() const
{
return false; // TODO
}
}

View File

@@ -0,0 +1,20 @@
#include <mesosphere/processes/KPort.hpp>
#include <mesosphere/core/KCoreContext.hpp>
namespace mesosphere
{
KPort::~KPort()
{
}
Result KPort::Initialize()
{
SetClientServerParent();
isClientAlive = true;
isServerAlive = true;
return ResultSuccess();
}
}

View File

@@ -0,0 +1,20 @@
#include <mesosphere/processes/KPort.hpp>
#include <mesosphere/threading/KScopedCriticalSection.hpp>
#include <mesosphere/threading/KThread.hpp>
#include <mesosphere/core/KCoreContext.hpp>
namespace mesosphere
{
KServerPort::~KServerPort()
{
KScopedCriticalSection critsec{};
parent->isServerAlive = false;
}
bool KServerPort::IsSignaled() const
{
return false; // TODO
}
}