mesosphere: Result{} => Result()

This commit is contained in:
Michael Scire committed 2019-06-03 17:41:03 -07:00
1 parent cd1f74154d
commit 0a0c05481e
4 files changed
+11 -11

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#include <mesosphere/processes/KEvent.hpp>
#include <mesosphere/core/KCoreContext.hpp>
#include <mesosphere/processes/KProcess.hpp>
namespace mesosphere
{
KEvent::~KEvent()
{
}
bool KEvent::IsAlive() const
{
return isInitialized;
}
Result KEvent::Initialize()
{
SetClientServerParent();
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
isInitialized = true;
return ResultSuccess();
}
}
@@ -24,14 +24,14 @@ Result KReadableEvent::Signal()
NotifyWaiters();
}
return ResultSuccess{};
return ResultSuccess();
}
Result KReadableEvent::Clear()
{
Reset();
return ResultSuccess{};
return ResultSuccess();
}
Result KReadableEvent::Reset()
@@ -40,9 +40,9 @@ Result KReadableEvent::Reset()
if (this->isSignaled) {
this->isSignaled = false;
return ResultSuccess{};
return ResultSuccess();
}
return ResultKernelInvalidState{};
return ResultKernelInvalidState();
}
}