2018-03-19 19:58:46 +01:00
|
|
|
using System;
|
|
|
|
using System.Threading;
|
|
|
|
|
2018-08-17 01:47:36 +02:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
2018-03-19 19:58:46 +01:00
|
|
|
{
|
|
|
|
class KSynchronizationObject : IDisposable
|
|
|
|
{
|
2018-04-19 04:52:23 +02:00
|
|
|
public ManualResetEvent WaitEvent { get; private set; }
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
public KSynchronizationObject()
|
|
|
|
{
|
2018-04-19 04:52:23 +02:00
|
|
|
WaitEvent = new ManualResetEvent(false);
|
2018-03-19 19:58:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
Dispose(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected virtual void Dispose(bool Disposing)
|
|
|
|
{
|
|
|
|
if (Disposing)
|
|
|
|
{
|
2018-04-19 04:52:23 +02:00
|
|
|
WaitEvent.Dispose();
|
2018-03-19 19:58:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|