Beispiel #1
0
 /// <summary>
 /// ModelFile reading process<para/>
 /// Процесс чтения ModelFile
 /// </summary>
 static void FileLoaderProcess()
 {
     while (true)
     {
         if (ModelFileProcessQueue.Count > 0)
         {
             ModelFile mf = null;
             while (ModelFileProcessQueue.Count > 0)
             {
                 if (ModelFileProcessQueue.TryDequeue(out mf))
                 {
                     mf.ReadData();
                 }
                 Thread.Sleep(0);
             }
         }
         else
         {
             Thread.Sleep(10);
         }
     }
 }