This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Cmc.Core.ComponentModel; | |
using Cmc.Core.Diagnostics; | |
using Cmc.Installer.Core.Tasks; | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
public sealed class RwLock : IDisposable | |
{ | |
private readonly ReaderWriterLockSlim _innerLock = new ReaderWriterLockSlim(); | |
private bool _disposed = false; | |
public IDisposable Read() | |
{ |