Remove IServer client ref

This commit is contained in:
TuxSH
2018-11-09 00:01:48 +01:00
committed by Michael Scire
parent 1b3b26c3af
commit 195da2e599
5 changed files with 13 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ KEvent::~KEvent()
Result KEvent::Initialize()
{
SetClientServerParent();
server.SetClient(&client);
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
return ResultSuccess();

View File

@@ -19,4 +19,9 @@ Result KWritableEvent::Clear()
return client->Clear();
}
void KWritableEvent::SetClient(SharedPtr<KReadableEvent> client)
{
this->client = std::move(client);
}
}