SetConcurrentThreadCount Method
- Namespace
- SatorImaging.UnityFundamentals
SetConcurrentThreadCount(int)
public static void SetConcurrentThreadCount(int numThreads)
Parameters
numThreads
int
SetConcurrentThreadCount(ref ConcurrentExclusiveSchedulerPair, int, int, TaskScheduler?)
public static void SetConcurrentThreadCount(ref ConcurrentExclusiveSchedulerPair scheduler, int numThreads, int adjustMaxThreadCount = 3, TaskScheduler? baseScheduler = null)
Parameters
scheduler
ConcurrentExclusiveSchedulerPairnumThreads
intadjustMaxThreadCount
intResulting max thread count for ThreadPool will be equal to or greater than
numThreads * adjustMaxThreadCount
.baseScheduler
TaskScheduler