2018-03-19 14:58:46 -04:00
|
|
|
using System;
|
|
|
|
using System.Threading;
|
|
|
|
|
2018-06-10 20:46:42 -04:00
|
|
|
namespace Ryujinx.HLE.OsHle.Handles
|
2018-03-19 14:58:46 -04:00
|
|
|
{
|
|
|
|
class KSynchronizationObject : IDisposable
|
|
|
|
{
|
2018-04-18 22:52:23 -04:00
|
|
|
public ManualResetEvent WaitEvent { get; private set; }
|
2018-03-19 14:58:46 -04:00
|
|
|
|
|
|
|
public KSynchronizationObject()
|
|
|
|
{
|
2018-04-18 22:52:23 -04:00
|
|
|
WaitEvent = new ManualResetEvent(false);
|
2018-03-19 14:58:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
Dispose(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected virtual void Dispose(bool Disposing)
|
|
|
|
{
|
|
|
|
if (Disposing)
|
|
|
|
{
|
2018-04-18 22:52:23 -04:00
|
|
|
WaitEvent.Dispose();
|
2018-03-19 14:58:46 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|