Example #1
0
        private static void Iterate(int fromInclusive, int toExclusive, Action <int> action)
        {
            var options = MultiThreadUtils.CreateParallelOptions();

            System.Threading.Tasks.Parallel.For(fromInclusive, toExclusive, options, action);
        }
Example #2
0
        private static void Iterate(int length, Action <int> action)
        {
            var options = MultiThreadUtils.CreateParallelOptions();

            System.Threading.Tasks.Parallel.For(0, length, options, action);
        }
Example #3
0
        private void IterateParallel(Transceiver[] transceivers, Action <int> action)
        {
            var options = MultiThreadUtils.CreateParallelOptions();

            System.Threading.Tasks.Parallel.For(0, transceivers.Length, options, action);
        }