meso: same thing for KEvent

This commit is contained in:
TuxSH 2018-11-10 23:20:04 +01:00 committed by Michael Scire
parent d9c97983a3
commit baa34ddab5
3 changed files with 3 additions and 8 deletions

View File

@ -22,9 +22,9 @@ class KWritableEvent final : public KAutoObject, public IServer<KEvent, KReadabl
Result Signal();
Result Clear();
void SetClient(SharedPtr<KReadableEvent> client);
private:
friend class KEvent;
SharedPtr<KReadableEvent> client{};
};

View File

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

View File

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