2018-09-23 20:11:46 +02:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
|
|
|
{
|
|
|
|
class KWritableEvent
|
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
private KEvent Parent;
|
2018-09-23 20:11:46 +02:00
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
public KWritableEvent(KEvent Parent)
|
2018-09-23 20:11:46 +02:00
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
this.Parent = Parent;
|
2018-09-23 20:11:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Signal()
|
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
Parent.ReadableEvent.Signal();
|
2018-09-23 20:11:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public KernelResult Clear()
|
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
return Parent.ReadableEvent.Clear();
|
2018-09-23 20:11:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|