Наша сборка Qt VS Tools
giy
2022-09-02 ca47896204482bf4a6979e3838bf7f09f61cebeb
QtVsTools.Package/Common/Concurrent.cs
@@ -40,12 +40,9 @@
    public abstract class Concurrent<TSubClass>
        where TSubClass : Concurrent<TSubClass>
    {
        private static readonly object _StaticCriticalSection = new object();
        protected static object StaticCriticalSection => _StaticCriticalSection;
        protected static object StaticCriticalSection { get; } = new object();
        private object _CriticalSection = null;
        protected object CriticalSection =>
            StaticThreadSafeInit(() => _CriticalSection, () => _CriticalSection = new object());
        protected object CriticalSection { get; } = new object();
        protected T ThreadSafeInit<T>(Func<T> getValue, Action init)
            where T : class