Example #1
0
        /// <summary>
        /// 创建线程
        /// </summary>
        /// <param name="count"></param>
        public static void CreateThreads(int count)
        {
            for (int i = 0; i < count; i++)
            {
                CometWaitThread waitThread = new CometWaitThread();
                waitThreads.Add(waitThread);
            }

            maxWaitThreads = count;
        }
Example #2
0
        /// <summary>
        /// 创建线程
        /// </summary>
        /// <param name="count"></param>
        public static void CreateThreads(int count)
        {
            for (int i = 0; i < count; i++)
            {
                CometWaitThread waitThread = new CometWaitThread();
                waitThreads.Add(waitThread);
            }

            maxWaitThreads = count;
        }