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)
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: IConcurrencyControllerA new instance of the reader-writer-synchronized concurrency controller.