public static bool SetMaxThreads(int workerThreads, int completionPortThreads)
{
- return SetMaxThreadsNative(workerThreads, completionPortThreads);
+ return
+ workerThreads >= 0 &&
+ completionPortThreads >= 0 &&
+ SetMaxThreadsNative(workerThreads, completionPortThreads);
}
public static void GetMaxThreads(out int workerThreads, out int completionPortThreads)
public static bool SetMinThreads(int workerThreads, int completionPortThreads)
{
- return SetMinThreadsNative(workerThreads, completionPortThreads);
+ return
+ workerThreads >= 0 &&
+ completionPortThreads >= 0 &&
+ SetMinThreadsNative(workerThreads, completionPortThreads);
}
public static void GetMinThreads(out int workerThreads, out int completionPortThreads)
}
},
{
+ "name": "System.Threading.ThreadPool.Tests",
+ "enabled": true,
+ "exclusions": {
+ "namespaces": null,
+ "classes": null,
+ "methods": [
+ {
+ "name": "System.Threading.ThreadPools.Tests.ThreadPoolTests.SetMinMaxThreadsTest",
+ "reason": "https://github.com/dotnet/corefx/issues/36885"
+ }
+ ]
+ }
+ },
+ {
"name": "System.Memory.Tests",
"enabled": true,
"exclusions": {