Example #1
0
        internal void EnsureThreadRequested()
        {
            int num2;

            for (int i = this.numOutstandingThreadRequests; i < ThreadPoolGlobals.processorCount; i = num2)
            {
                num2 = Interlocked.CompareExchange(ref this.numOutstandingThreadRequests, i + 1, i);
                if (num2 == i)
                {
                    ThreadPool.AdjustThreadsInPool(1);
                    return;
                }
            }
        }