mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Thread safety
This commit is contained in:
parent
d6ab614695
commit
9cd8c255cf
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
using Dalamud.Utility;
|
||||
|
||||
|
|
@ -9,9 +9,9 @@ namespace Dalamud.Game.Config;
|
|||
/// </summary>
|
||||
internal static class GameConfigEnumExtensions
|
||||
{
|
||||
private static readonly Dictionary<SystemConfigOption, string> SystemNameCache = new();
|
||||
private static readonly Dictionary<UiConfigOption, string> UIConfigNameCache = new();
|
||||
private static readonly Dictionary<UiControlOption, string> UIControlNameCache = new();
|
||||
private static readonly ConcurrentDictionary<SystemConfigOption, string> SystemNameCache = new();
|
||||
private static readonly ConcurrentDictionary<UiConfigOption, string> UIConfigNameCache = new();
|
||||
private static readonly ConcurrentDictionary<UiControlOption, string> UIControlNameCache = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of a SystemConfigOption from it's attribute.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue