PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ThreadingConcurrency­Controller­FactoryCreate­Reader­Writer­Synchronized­Controller
Open sandboxFocus

ConcurrencyControllerFactory.CreateReaderWriterSynchronizedController Method

CreateReaderWriterSynchronizedController()

Creates a new concurrency controller for the reader-writer-synchronized threading model (ReaderWriterSynchronizedThreadingModel).

Declaration
public static IConcurrencyController CreateReaderWriterSynchronizedController()
Returns
Type Description
IConcurrencyController

A new instance of the reader-writer-synchronized concurrency controller.

CreateReaderWriterSynchronizedController(Boolean)

Creates a new concurrency controller for the reader-writer-synchronized threading model (ReaderWriterSynchronizedThreadingModel) and specifies whether the new controller should participate in deadlock detection.

Declaration
public static IConcurrencyController CreateReaderWriterSynchronizedController(bool useDeadlockDetection)
Parameters
Type Name Description
System.Boolean useDeadlockDetection

Indicates whether the controller should participate in the deadlock detection algorithm. Use IsEnabled(Assembly) to determine whether the policy is enabled for the current assembly.

Returns
Type Description
IConcurrencyController

A new instance of the reader-writer-synchronized concurrency controller.