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

ConcurrencyControllerFactory.CreateSynchronizedController Method

Creates a new concurrency controller for the synchronized threading model (SynchronizedThreadingModel) 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: (
public static IConcurrencyController CreateSynchronizedController(
	bool 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 synchronized concurrency controller.
See Also