[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

@@ -76,7 +76,7 @@ namespace Ryujinx.Core.OsHle.Services.Aud
ReleaseCallback Callback = () =>
{
ReleaseEvent.Handle.Set();
ReleaseEvent.WaitEvent.Set();
};
int Track = AudioOut.OpenTrack(SampleRate, Channels, Callback, out AudioFormat Format);

View File

@@ -47,7 +47,7 @@ namespace Ryujinx.Core.OsHle.Services.Aud
}
//TODO: We shouldn't be signaling this here.
UpdateEvent.Handle.Set();
UpdateEvent.WaitEvent.Set();
return 0;
}

View File

@@ -391,7 +391,7 @@ namespace Ryujinx.Core.OsHle.Services.Android
{
BufferQueue[Slot].State = BufferState.Free;
ReleaseEvent.Handle.Set();
ReleaseEvent.WaitEvent.Set();
lock (WaitBufferFree)
{