2018-03-19 19:58:46 +01:00
|
|
|
using System;
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
namespace Ryujinx.Core.OsHle.Handles
|
|
|
|
{
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|