Commit 7341bf0 1 parent 58058a8 commit 7341bf0 Copy full SHA for 7341bf0
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ WorkGetPhysicalConcurrencyLimit()
71
71
#endif
72
72
}
73
73
74
- // This function always returns an actual thread count >= 1.
74
+ // This function always returns either 0 (meaning "no change") or >= 1
75
75
static unsigned
76
76
Work_NormalizeThreadCount (const int n)
77
77
{
78
78
// Zero means "no change", and n >= 1 means exactly n threads, so simply
79
79
// pass those values through unchanged.
80
80
// For negative integers, subtract the absolute value from the total number
81
- // of available cores (denoting all but n cores). If n = = number of cores,
81
+ // of available cores (denoting all but n cores). If |n| > = number of cores,
82
82
// clamp to 1 to set single-threaded mode.
83
83
return n >= 0 ? n : std::max<int >(1 , n + WorkGetPhysicalConcurrencyLimit ());
84
84
}
You can’t perform that action at this time.
0 commit comments