Merge pull request #14016 from hvitved/csharp/codeql-threads

C#: Respect `$CODEQL_THREADS` environment variable
This commit is contained in:
Tom Hvitved
2023-08-22 13:04:48 +02:00
committed by GitHub
5 changed files with 31 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ namespace Semmle.Extraction
/// <summary>
/// The specified number of threads, or the default if unspecified.
/// </summary>
public int Threads { get; private set; } = System.Environment.ProcessorCount;
public int Threads { get; private set; } = EnvironmentVariables.GetDefaultNumberOfThreads();
/// <summary>
/// The verbosity used in output and logging.