Removes usages of UpgradeableReadLock

This commit is contained in:
Shannon
2021-04-20 18:02:23 +10:00
parent bf7a3251d8
commit dc08997040
5 changed files with 43 additions and 43 deletions

View File

@@ -1,20 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Umbraco.Core
{
/// <summary>
/// Provides a convenience methodology for implementing locked access to resources.
/// </summary>
/// <remarks>
/// <para>Intended as an infrastructure class.</para>
/// <para>This is a very inefficient way to lock as it allocates one object each time we lock,
/// so it's OK to use this class for things that happen once, where it is convenient, but not
/// for performance-critical code!</para>
/// </remarks>
[Obsolete("Use ReaderWriterLockSlim directly. This will be removed in future versions.")]
public class ReadLock : IDisposable
{
private readonly ReaderWriterLockSlim _rwLock;