Aegis.Threading.WorkerThread.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start()
        {
            lock (this)
            {
                _running = true;
                foreach (var thread in _threads)
                {
                    if (thread.ThreadState != ThreadState.Running)
                        thread.Start();
                }
            }
        }

Usage Example

Example #1
0
        internal static void IncreaseThread(WorkerThread target, int threadCount)
        {
            int increaseCount = threadCount - target.ThreadCount;

            if (increaseCount < 1)
            {
                return;
            }

            target.Increase(increaseCount);
            target.Start();
        }
All Usage Examples Of Aegis.Threading.WorkerThread::Start