Пример #1
0
        public void Add(EoiThread thread)
        {
            lock (ThreadPools)
            {
                if (!ThreadPools.ContainsKey(thread.ThreadPool))
                {
                    ThreadPools.Add(thread.ThreadPool, new EoiThreadPool());
                }

                ThreadPools[thread.ThreadPool].WaitingThreads.AddLast(thread);
            }
        }