Skip to main content

dxEnableMultiThreading Constant

Specifies if multithreading is enabled in all DevExpress controls used in an application.

Declaration

const dxEnableMultiThreading: Boolean = True;

Returns

Type Description
Boolean
  • If True (recommended), DevExpress controls can use multi-threaded calculations.
  • If False, DevExpress controls cannot use multi-threaded calculations, and all corresponding settings have no effect.

Remarks

All DevExpress controls that benefit from multithreading call the dxCanUseMultiThreading global function to identify if they can use multithreaded data processing algorithms and run any other routines in separate threads. If the dxEnableMultiThreading global constant value is False, the dxCanUseMultiThreading function returns False without checking all other multithreading availability conditions.

Affected Control Settings

You can use the following properties to explicitly enable or disable multi-threaded calculations for individual DevExpress controls if the dxEnableMultiThreading global constant is set to True (default):

TdxPDFViewerOptionsBehavior.RenderContentInBackground
Specifies if the PDF Viewer control repaints document pages in a separate thread rather than the main thread.
TcxCustomDataController.MultiThreadedOptions
Provides access to multi-threading settings.
TcxTreeListOptionsData.MultiThreadedSorting
Specifies if the tree list control uses a multi-threaded sorting algorithm.
TcxvgMultiRecordsOptionsData.MultiThreadedFiltering
Specifies if the vertical grid control uses a multi-threaded filtering algorithm.

Important

We recommend that you leave multi-threaded algorithms enabled to ensure the best application performance. You may need to disable multi-threaded calculations in a component only if you implement a thread-unsafe version of the corresponding algorithm.

See Also