Поделиться через


CAtlAutoThreadModuleT::GetDefaultThreads

This static function dynamically calculates and returns the maximum number of threads for the EXE module, based on the number of processors.

static int GetDefaultThreads( );

Возвращаемое значение

The number of threads to be created in the EXE module.

Заметки

Override this method if you want to use a different method for calculating the number of threads. By default, the number of threads is based on the number of processors.

Требования

Header: atlbase.h

См. также

Основные понятия

CAtlAutoThreadModuleT Class

CAtlAutoThreadModuleT Members