2018-12-17 21:33:36 -08:00
|
|
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Threading
|
2018-09-23 11:11:46 -07:00
|
|
|
{
|
|
|
|
class KWritableEvent
|
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
private KEvent _parent;
|
2018-09-23 11:11:46 -07:00
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
public KWritableEvent(KEvent parent)
|
2018-09-23 11:11:46 -07:00
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
_parent = parent;
|
2018-09-23 11:11:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Signal()
|
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
_parent.ReadableEvent.Signal();
|
2018-09-23 11:11:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public KernelResult Clear()
|
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
return _parent.ReadableEvent.Clear();
|
2018-09-23 11:11:46 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|