Aegis.Threading.SpinWorker.IncreaseThread C# (CSharp) Méthode

IncreaseThread() static private méthode

static private IncreaseThread ( WorkerThread target, int threadCount ) : void
target WorkerThread
threadCount int
Résultat void
        internal static void IncreaseThread(WorkerThread target, int threadCount)
        {
            int increaseCount = threadCount - target.ThreadCount;
            if (increaseCount < 1)
                return;

            target.Increase(increaseCount);
            target.Start();
        }