aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs')
-rw-r--r--src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs b/src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs
index 764ea715..ae647e38 100644
--- a/src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs
+++ b/src/Ryujinx.Graphics.OpenGL/BackgroundContextWorker.cs
@@ -9,12 +9,12 @@ namespace Ryujinx.Graphics.OpenGL
{
[ThreadStatic]
public static bool InBackground;
- private Thread _thread;
+ private readonly Thread _thread;
private bool _running;
- private AutoResetEvent _signal;
- private Queue<Action> _work;
- private ObjectPool<ManualResetEventSlim> _invokePool;
+ private readonly AutoResetEvent _signal;
+ private readonly Queue<Action> _work;
+ private readonly ObjectPool<ManualResetEventSlim> _invokePool;
private readonly IOpenGLContext _backgroundContext;
public BackgroundContextWorker(IOpenGLContext backgroundContext)
@@ -88,4 +88,4 @@ namespace Ryujinx.Graphics.OpenGL
_signal.Dispose();
}
}
-} \ No newline at end of file
+}