PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Concurrency­Controller­Factory Class / Concurrency­Controller­Factory Methods / Concurrency­Controller­Factory.​Create­Reader­Writer­Synchronized­Controller Method

ConcurrencyControllerFactory.CreateReaderWriterSynchronizedController Method

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

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static IConcurrencyController CreateReaderWriterSynchronizedController(
	bool useDeadlockDetection
)

Parameters

useDeadlockDetection
Type: System.Boolean
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.

Return Value

Type: IConcurrencyController
A new instance of the reader-writer-synchronized concurrency controller.
See Also