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);
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
花费额外的资源来捕获可用于分析死锁或其他问题的诊断详细信息。