diff options
| author | Marco Carvalho <marcolucio27@gmail.com> | 2023-06-14 21:34:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-15 00:34:55 +0000 |
| commit | 82f90704a0662bba7254cb0bc262d785acdabc67 (patch) | |
| tree | 72d32a909661d7f26217eee66ffe1d068dcfe101 /src/Ryujinx.Memory | |
| parent | f978d3726a87dcc067abb2541b96b831e4390fbb (diff) | |
Blocks should be synchronized on read-only fields (#5212)
* Blocks should be synchronized on read-only fields
* more readonlys
* fix alignment
* more
* Update ISelfController.cs
* simplify new
* simplify new
Diffstat (limited to 'src/Ryujinx.Memory')
| -rw-r--r-- | src/Ryujinx.Memory/Tracking/RegionHandle.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Memory/Tracking/RegionHandle.cs b/src/Ryujinx.Memory/Tracking/RegionHandle.cs index 63a16884..77794488 100644 --- a/src/Ryujinx.Memory/Tracking/RegionHandle.cs +++ b/src/Ryujinx.Memory/Tracking/RegionHandle.cs @@ -52,7 +52,7 @@ namespace Ryujinx.Memory.Tracking private event Action _onDirty; - private object _preActionLock = new object(); + private readonly object _preActionLock = new(); private RegionSignal _preAction; // Action to perform before a read or write. This will block the memory access. private PreciseRegionSignal _preciseAction; // Action to perform on a precise read or write. private readonly List<VirtualRegion> _regions; |
