From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001
From: giy <giy@omp-system.ru>
Date: Fri, 02 Sep 2022 14:16:56 +0300
Subject: [PATCH] Обновление до версии 2.9.0
---
QtVsTools.Package/Common/Concurrent.cs | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/QtVsTools.Package/Common/Concurrent.cs b/QtVsTools.Package/Common/Concurrent.cs
index d1426f4..c963968 100644
--- a/QtVsTools.Package/Common/Concurrent.cs
+++ b/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
--
Gitblit v1.9.1