fix: use ConcurrentDictionary in HookManager

This commit is contained in:
goaaats 2022-06-25 17:15:26 +02:00
parent 86b5eec493
commit 0a50e1460e
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -31,12 +31,12 @@ namespace Dalamud.Hooking.Internal
/// <summary>
/// Gets a static dictionary of original code for a hooked address.
/// </summary>
internal static Dictionary<IntPtr, byte[]> Originals { get; } = new();
internal static ConcurrentDictionary<IntPtr, byte[]> Originals { get; } = new();
/// <summary>
/// Gets a static dictionary of the number of hooks on a given address.
/// </summary>
internal static Dictionary<IntPtr, List<IDalamudHook?>> MultiHookTracker { get; } = new();
internal static ConcurrentDictionary<IntPtr, List<IDalamudHook?>> MultiHookTracker { get; } = new();
/// <inheritdoc/>
public void Dispose()