LockUtilities..::..Read Method

Acquires a read lock on the indicated ReaderWriterLockSlim.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static IDisposable Read(
	ReaderWriterLockSlim lock
)
Public Shared Function Read ( _
	lock As ReaderWriterLockSlim _
) As IDisposable

Parameters

lock
Type: ReaderWriterLockSlim
The lock to be acquired.

Remarks


To not use this in an environment where Thread Abort exceptions are possible, as it may lead to dead locks.