KSynchronizationObject.cs 561 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Threading;
  3. namespace Ryujinx.HLE.OsHle.Handles
  4. {
  5. class KSynchronizationObject : IDisposable
  6. {
  7. public ManualResetEvent WaitEvent { get; private set; }
  8. public KSynchronizationObject()
  9. {
  10. WaitEvent = new ManualResetEvent(false);
  11. }
  12. public void Dispose()
  13. {
  14. Dispose(true);
  15. }
  16. protected virtual void Dispose(bool Disposing)
  17. {
  18. if (Disposing)
  19. {
  20. WaitEvent.Dispose();
  21. }
  22. }
  23. }
  24. }