Open sandboxFocus

Method CreateReaderWriterSynchronizedController

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(bool)

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
bool 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.