2018-09-23 14:11:46 -04:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
|
|
|
{
|
|
|
|
class KWritableEvent
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
private KEvent _parent;
|
2018-09-23 14:11:46 -04:00
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
public KWritableEvent(KEvent parent)
|
2018-09-23 14:11:46 -04:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
_parent = parent;
|
2018-09-23 14:11:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Signal()
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
_parent.ReadableEvent.Signal();
|
2018-09-23 14:11:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public KernelResult Clear()
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
return _parent.ReadableEvent.Clear();
|
2018-09-23 14:11:46 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|