AsyncReaderWriterResourceLock<TMoniker,TResource> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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);
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 用于捕获可用于分析死锁或其他问题的诊断详细信息的其他资源。