Aegis.Threading.SpinWorker.IncreaseThread C# (CSharp) Method

IncreaseThread() static private method

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

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