mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 21:00:47 -07:00
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
This commit is contained in:
@ -13,7 +13,7 @@ namespace Ryujinx.Horizon.Sdk.OsTypes.Impl
|
||||
|
||||
private readonly List<MultiWaitHolderBase> _multiWaits;
|
||||
|
||||
private object _lock;
|
||||
private readonly object _lock = new();
|
||||
|
||||
private int _waitingThreadHandle;
|
||||
|
||||
@ -24,8 +24,6 @@ namespace Ryujinx.Horizon.Sdk.OsTypes.Impl
|
||||
public MultiWaitImpl()
|
||||
{
|
||||
_multiWaits = new List<MultiWaitHolderBase>();
|
||||
|
||||
_lock = new object();
|
||||
}
|
||||
|
||||
public void LinkMultiWaitHolder(MultiWaitHolderBase multiWaitHolder)
|
||||
|
Reference in New Issue
Block a user