Skip to main content
A newer version of this page is available. .

dxCanUseMultiThreading Method

Identifies whether all DevExpress components can use multi-threaded algorithms in an application.

Declaration

function dxCanUseMultiThreading: Boolean;

Returns

Type
Boolean

Remarks

All DevExpress controls that benefit from multithreading call this global function internally to identify whether to use multithreaded data processing algorithms and/or run content rendering routines in separate threads. Multithreaded calculations are available to DevExpress controls in an application only if the dxCanUseMultiThreading global function returns True.

This function returns True if the following conditions are met:

  • The thread pool functionality is available in an operating system;

  • Multithreading initialization routines detected more than one available CPU core at the application startup;

  • The dxEnableMultiThreading writable global constant is True.

Otherwise, the dxCanUseMultiThreading function returns False.

See Also