Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EffectiveMaxConcurrencyLevel

int System.Threading.Tasks.ParallelOptions.EffectiveMaxConcurrencyLevel
getpackage

Definition at line 53 of file ParallelOptions.cs.

54 {
55 get
56 {
57 int num = MaxDegreeOfParallelism;
58 int maximumConcurrencyLevel = EffectiveTaskScheduler.MaximumConcurrencyLevel;
59 if (maximumConcurrencyLevel > 0 && maximumConcurrencyLevel != int.MaxValue)
60 {
61 num = ((num == -1) ? maximumConcurrencyLevel : Math.Min(maximumConcurrencyLevel, num));
62 }
63 return num;
64 }
65 }