Variable SettingsFields.maxThreads

The number of threads tha you want to use 0 means the number of cores that your processor has

template SettingsFields
{
  // ...
  uint maxThreads = 0;
  // ...
}