-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Threading_ReaderWriterLockSlimExtensions_GetWriteLock
Andrew Koryavchenko edited this page Jun 17, 2018
·
7 revisions
Tries to enter the lock in write mode.
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static ReaderWriterLockSlimExtensions.WriteLockScope GetWriteLock(
this ReaderWriterLockSlim readerWriterLock
)
VB
<ExtensionAttribute>
Public Shared Function GetWriteLock (
readerWriterLock As ReaderWriterLockSlim
) As ReaderWriterLockSlimExtensions.WriteLockScope
F#
[<ExtensionAttribute>]
static member GetWriteLock :
readerWriterLock : ReaderWriterLockSlim -> ReaderWriterLockSlimExtensions.WriteLockScope
- readerWriterLock
- Type: System.Threading.ReaderWriterLockSlim
The ReaderWriterLockSlim instance.
Type: ReaderWriterLockSlimExtensions.WriteLockScope
The IDisposable object that reduce the recursion count for write mode, and exits write mode if the resulting count is 0 (zero).
In Visual Basic and C#, you can call this method as an instance method on any object of type ReaderWriterLockSlim. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ReaderWriterLockSlimExtensions Class
CodeJam.Threading Namespace