aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/OsHle/Handles/KSynchronizationObject.cs
blob: 0e7d06f6d7ff200f569481aecc5389b5f5d3e6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Threading;

namespace Ryujinx.HLE.OsHle.Handles
{
    class KSynchronizationObject : IDisposable
    {
        public ManualResetEvent WaitEvent { get; private set; }

        public KSynchronizationObject()
        {
            WaitEvent = new ManualResetEvent(false);
        }

        public void Dispose()
        {
            Dispose(true);
        }

        protected virtual void Dispose(bool Disposing)
        {
            if (Disposing)
            {
                WaitEvent.Dispose();
            }
        }
    }
}