Skip to content

Instantly share code, notes, and snippets.

View ReedCopsey's full-sized avatar

Reed Copsey, Jr. ReedCopsey

View GitHub Profile
@ReedCopsey
ReedCopsey / RwLock
Last active August 29, 2015 14:15 — forked from JohanLarsson/RwLock
using System;
using System.Threading;
public sealed class RwLock : IDisposable
{
private readonly ReaderWriterLockSlim _innerLock = new ReaderWriterLockSlim();
private bool _disposed = false;
public IDisposable Read()
{
#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