Beispiel #1
0
 /// <summary>
 /// Disposes a lane at index. This nulls the slot which
 /// will be counted if the lane is disposed directly.
 /// The disposed but not nulled lanes may blow the MAX_LANES threshold at allocation.
 /// </summary>
 /// <param name="index">The slot index.</param>
 public void DisposeLane(int index)
 {
     if (Lanes.AppendIndex >= index)
     {
         var lane = Lanes.Take(index);
         if (lane != null)
         {
             lane.Dispose();
         }
     }
 }