Lean  $LEAN_TAG$
QuantConnect.Util.ReaderWriterLockSlimExtensions Class Reference

Provides extension methods to make working with the ReaderWriterLockSlim class easier More...

Static Public Member Functions

static IDisposable Read (this ReaderWriterLockSlim readerWriterLockSlim)
 Opens the read lock More...
 
static IDisposable Write (this ReaderWriterLockSlim readerWriterLockSlim)
 Opens the write lock More...
 

Detailed Description

Provides extension methods to make working with the ReaderWriterLockSlim class easier

Definition at line 25 of file ReaderWriterLockSlimExtensions.cs.

Member Function Documentation

◆ Read()

static IDisposable QuantConnect.Util.ReaderWriterLockSlimExtensions.Read ( this ReaderWriterLockSlim  readerWriterLockSlim)
static

Opens the read lock

Parameters
readerWriterLockSlimThe lock to open for read
Returns
A disposable reference which will release the lock upon disposal

Definition at line 32 of file ReaderWriterLockSlimExtensions.cs.

◆ Write()

static IDisposable QuantConnect.Util.ReaderWriterLockSlimExtensions.Write ( this ReaderWriterLockSlim  readerWriterLockSlim)
static

Opens the write lock

Parameters
readerWriterLockSlimThe lock to open for write
Returns
A disposale reference which will release thelock upon disposal

Definition at line 42 of file ReaderWriterLockSlimExtensions.cs.


The documentation for this class was generated from the following file: