mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-28 01:20:58 +01:00
meso: same thing for KEvent
This commit is contained in:
parent
d9c97983a3
commit
baa34ddab5
@ -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{};
|
||||
};
|
||||
|
||||
|
@ -11,7 +11,7 @@ KEvent::~KEvent()
|
||||
Result KEvent::Initialize()
|
||||
{
|
||||
SetClientServerParent();
|
||||
server.SetClient(&client);
|
||||
server.client = &client;
|
||||
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
|
||||
|
||||
return ResultSuccess();
|
||||
|
@ -19,9 +19,4 @@ Result KWritableEvent::Clear()
|
||||
return client->Clear();
|
||||
}
|
||||
|
||||
void KWritableEvent::SetClient(SharedPtr<KReadableEvent> client)
|
||||
{
|
||||
this->client = std::move(client);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user