AsyncReaderWriterLock Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsyncReaderWriterLock() |
Initializes a new instance of the AsyncReaderWriterLock class. |
AsyncReaderWriterLock(Boolean) |
Initializes a new instance of the AsyncReaderWriterLock class. |
AsyncReaderWriterLock(JoinableTaskContext, Boolean) |
Initializes a new instance of the AsyncReaderWriterLock class. |
AsyncReaderWriterLock()
Initializes a new instance of the AsyncReaderWriterLock class.
public:
AsyncReaderWriterLock();
public:
AsyncReaderWriterLock();
AsyncReaderWriterLock();
public AsyncReaderWriterLock ();
Public Sub New ()
Applies to
AsyncReaderWriterLock(Boolean)
Initializes a new instance of the AsyncReaderWriterLock class.
public:
AsyncReaderWriterLock(bool captureDiagnostics);
public:
AsyncReaderWriterLock(bool captureDiagnostics);
AsyncReaderWriterLock(bool captureDiagnostics);
public AsyncReaderWriterLock (bool captureDiagnostics);
new Microsoft.VisualStudio.Threading.AsyncReaderWriterLock : bool -> Microsoft.VisualStudio.Threading.AsyncReaderWriterLock
Public Sub New (captureDiagnostics As Boolean)
Parameters
- captureDiagnostics
- Boolean
true
to spend additional resources capturing diagnostic details that can be used
to analyze deadlocks or other issues.
Applies to
AsyncReaderWriterLock(JoinableTaskContext, Boolean)
Initializes a new instance of the AsyncReaderWriterLock class.
public AsyncReaderWriterLock (Microsoft.VisualStudio.Threading.JoinableTaskContext? joinableTaskContext, bool captureDiagnostics = false);
new Microsoft.VisualStudio.Threading.AsyncReaderWriterLock : Microsoft.VisualStudio.Threading.JoinableTaskContext * bool -> Microsoft.VisualStudio.Threading.AsyncReaderWriterLock
Public Sub New (joinableTaskContext As JoinableTaskContext, Optional captureDiagnostics As Boolean = false)
Parameters
- joinableTaskContext
- JoinableTaskContext
A JoinableTaskContext to help resolve deadlocks caused by interdependency between top read lock tasks when there is a pending write lock blocking one of them.
- captureDiagnostics
- Boolean
true
to spend additional resources capturing diagnostic details that can be used
to analyze deadlocks or other issues.