Freigeben über


ReaderWriterLockSlimWrapper Class

Definition

Simple wrapper for ReaderWriterLockSlim that provides helpers for entering the various modes of the lock that return disposable objects that will exit the entered mode when disposed.

The wrapped lock can be accessed via the InnerLock property.

public ref class ReaderWriterLockSlimWrapper
[Windows::Foundation::Metadata::WebHostHidden]
class ReaderWriterLockSlimWrapper
public class ReaderWriterLockSlimWrapper
type ReaderWriterLockSlimWrapper = class
Public Class ReaderWriterLockSlimWrapper
Inheritance
ReaderWriterLockSlimWrapper

Constructors

ReaderWriterLockSlimWrapper(ReaderWriterLockSlim)

Properties

InnerLock

The ReaderWriterLockSlim that is wrapped by this object.

Methods

EnterReadLock()

Tries to enter the lock in read mode.

EnterUpgradeableReadLock()

Tries to enter the lock in upgradeable mode.

EnterWriteLock()

Tries to enter the lock in write mode.

TryEnterReadLock(Int32)

Tries to enter the lock in read mode, with an optional integer time-out.

TryEnterReadLock(TimeSpan)

Tries to enter the lock in read mode, with an optional integer time-out.

TryEnterUpgradeableReadLock(Int32)

Tries to enter the lock in upgradeable mode, with an optional integer time-out.

TryEnterUpgradeableReadLock(TimeSpan)

Tries to enter the lock in upgradeable mode, with an optional integer time-out.

TryEnterWriteLock(Int32)

Tries to enter the lock in write mode, with an optional integer time-out.

TryEnterWriteLock(TimeSpan)

Tries to enter the lock in write mode, with an optional integer time-out.

Applies to