2018-11-05 11:51:50 +00:00
|
|
|
#include <mesosphere/processes/KWritableEvent.hpp>
|
|
|
|
#include <mesosphere/processes/KReadableEvent.hpp>
|
|
|
|
#include <mesosphere/processes/KEvent.hpp>
|
|
|
|
|
|
|
|
namespace mesosphere
|
|
|
|
{
|
|
|
|
|
2018-11-05 12:57:50 +00:00
|
|
|
KWritableEvent::~KWritableEvent()
|
|
|
|
{
|
2018-11-05 11:51:50 +00:00
|
|
|
}
|
|
|
|
|
2018-11-05 12:57:50 +00:00
|
|
|
Result KWritableEvent::Signal()
|
|
|
|
{
|
|
|
|
return client->Signal();
|
|
|
|
}
|
|
|
|
|
|
|
|
Result KWritableEvent::Clear()
|
|
|
|
{
|
|
|
|
return client->Clear();
|
2018-11-05 11:51:50 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 23:01:48 +00:00
|
|
|
void KWritableEvent::SetClient(SharedPtr<KReadableEvent> client)
|
|
|
|
{
|
|
|
|
this->client = std::move(client);
|
|
|
|
}
|
|
|
|
|
2018-11-05 11:51:50 +00:00
|
|
|
}
|