AsyncReaderWriterResourceLock<TMoniker,TResource> 构造函数

定义

重载

AsyncReaderWriterResourceLock<TMoniker,TResource>()

初始化 AsyncReaderWriterResourceLock<TMoniker,TResource> 类的新实例。

AsyncReaderWriterResourceLock<TMoniker,TResource>(Boolean)

初始化 AsyncReaderWriterResourceLock<TMoniker,TResource> 类的新实例。

AsyncReaderWriterResourceLock<TMoniker,TResource>(JoinableTaskContext, Boolean)

初始化 AsyncReaderWriterResourceLock<TMoniker,TResource> 类的新实例。

AsyncReaderWriterResourceLock<TMoniker,TResource>()

protected:
 AsyncReaderWriterResourceLock();
protected:
 AsyncReaderWriterResourceLock();
 AsyncReaderWriterResourceLock();
protected AsyncReaderWriterResourceLock ();
Protected Sub New ()

适用于

AsyncReaderWriterResourceLock<TMoniker,TResource>(Boolean)

protected:
 AsyncReaderWriterResourceLock(bool captureDiagnostics);
protected:
 AsyncReaderWriterResourceLock(bool captureDiagnostics);
 AsyncReaderWriterResourceLock(bool captureDiagnostics);
protected AsyncReaderWriterResourceLock (bool captureDiagnostics);
new Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)> : bool -> Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>
Protected Sub New (captureDiagnostics As Boolean)

参数

captureDiagnostics
Boolean

true 花费额外的资源来捕获可用于分析死锁或其他问题的诊断详细信息。

适用于

AsyncReaderWriterResourceLock<TMoniker,TResource>(JoinableTaskContext, Boolean)

protected:
 AsyncReaderWriterResourceLock(Microsoft::VisualStudio::Threading::JoinableTaskContext ^ joinableTaskContext, bool captureDiagnostics);
protected AsyncReaderWriterResourceLock (Microsoft.VisualStudio.Threading.JoinableTaskContext? joinableTaskContext, bool captureDiagnostics);
new Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)> : Microsoft.VisualStudio.Threading.JoinableTaskContext * bool -> Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>
Protected Sub New (joinableTaskContext As JoinableTaskContext, captureDiagnostics As Boolean)

参数

joinableTaskContext
JoinableTaskContext

一个 JoinableTaskContext,当存在挂起的写入锁阻止其中一个时,可帮助解决由顶部读取锁任务之间的相互依赖导致的死锁。

captureDiagnostics
Boolean

true 花费额外的资源来捕获可用于分析死锁或其他问题的诊断详细信息。

适用于