예제 #1
0
 public void FinishedProcessingPath(aPathResult result)
 {
     lock (results)
     {
         results.Enqueue(result);
     }
 }
예제 #2
0
 private void Update()
 {
     if (results.Count > 0)
     {
         int itmsInQueue = results.Count;
         lock (results)
         {
             for (int i = 0; i < itmsInQueue; i++)
             {
                 aPathResult result = results.Dequeue();
                 result.callback(result.path, result.succes);
             }
         }
     }
 }