2018-03-19 19:58:46 +01:00
|
|
|
using System;
|
|
|
|
using System.Threading;
|
|
|
|
|
2018-06-11 02:46:42 +02:00
|
|
|
namespace Ryujinx.HLE.OsHle.Handles
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|