[HLE/Kernel] Somewhat improved sync primitives

This commit is contained in:
gdkchan 2018-04-18 23:52:23 -03:00
parent e9a96e3522
commit b9af34f3dd
20 changed files with 408 additions and 443 deletions

View file

@ -5,11 +5,11 @@ namespace Ryujinx.Core.OsHle.Handles
{
class KSynchronizationObject : IDisposable
{
public ManualResetEvent Handle { get; private set; }
public ManualResetEvent WaitEvent { get; private set; }
public KSynchronizationObject()
{
Handle = new ManualResetEvent(false);
WaitEvent = new ManualResetEvent(false);
}
public void Dispose()
@ -21,7 +21,7 @@ namespace Ryujinx.Core.OsHle.Handles
{
if (Disposing)
{
Handle.Dispose();
WaitEvent.Dispose();
}
}
}