mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-01-05 11:58:00 +00:00
meso: same thing for KEvent
This commit is contained in:
parent
d9c97983a3
commit
baa34ddab5
3 changed files with 3 additions and 8 deletions
|
@ -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{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -19,9 +19,4 @@ Result KWritableEvent::Clear()
|
||||||
return client->Clear();
|
return client->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KWritableEvent::SetClient(SharedPtr<KReadableEvent> client)
|
|
||||||
{
|
|
||||||
this->client = std::move(client);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue