コード例 #1
0
 public void StartThread(int count)
 {
     for (int i = 0; i < count; i++)
     {
         var thread = new PFThread();
         mThreads.Add(thread);
         thread.StartThread();
     }
 }
コード例 #2
0
        PFThread SelectPFThread()
        {
            int      MinValue  = int.MaxValue;
            PFThread sltThread = null;

            foreach (var i in mThreads)
            {
                if (i.ExecutePlanes.Count < MinValue)
                {
                    MinValue  = i.ExecutePlanes.Count;
                    sltThread = i;
                }
            }

            return(sltThread);
        }