Back to Devexpress

dxCanUseMultiThreading Method

vcl-dxthreading-d6bae5cf.md

latest1.0 KB
Original Source

dxCanUseMultiThreading Method

Identifies if DevExpress components can use multi-threaded calculations.

Declaration

delphi
function dxCanUseMultiThreading: Boolean;

Returns

TypeDescription
Boolean

True if multi-threaded calculations are available to DevExpress controls; otherwise, False.

|

Remarks

All DevExpress controls that can benefit from multi-threaded calculations call the dxCanUseMultiThreading function to identify if it is possible to run content rendering routines or data processing algorithms in a separate thread.

The dxCanUseMultiThreading global function returns True only if all of the following conditions are met:

  • The thread pool is available in the target operating system.
  • More than one CPU core is detected at application startup.
  • The dxEnableMultiThreading global constant is set to True.

See Also

dxThreading Unit