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 Signal();
Result Clear(); Result Clear();
void SetClient(SharedPtr<KReadableEvent> client);
private: private:
friend class KEvent;
SharedPtr<KReadableEvent> client{}; SharedPtr<KReadableEvent> client{};
}; };

View file

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

View file

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