private static void Iterate(int fromInclusive, int toExclusive, Action <int> action) { var options = MultiThreadUtils.CreateParallelOptions(); System.Threading.Tasks.Parallel.For(fromInclusive, toExclusive, options, action); }
private static void Iterate(int length, Action <int> action) { var options = MultiThreadUtils.CreateParallelOptions(); System.Threading.Tasks.Parallel.For(0, length, options, action); }
private void IterateParallel(Transceiver[] transceivers, Action <int> action) { var options = MultiThreadUtils.CreateParallelOptions(); System.Threading.Tasks.Parallel.For(0, transceivers.Length, options, action); }