Ejemplo n.º 1
0
 //public static ParallelLoopResult ForEach<TSource>(Partitioner<TSource> source, Action<TSource, ParallelLoopState> body);
 public static OTasks.ParallelLoopResult ForEach <TSource>(global::System.Collections.Concurrent.Partitioner <TSource> part, Action <TSource, OTasks.ParallelLoopState> body)
 {
     return(Helper.SimpleWrap <OTasks.ParallelLoopResult>(
                (ClrSyncManager m) => {
         throw new NotImplementedException("This form of Parallel.ForEach is not yet supported by CHESS.");
     },
                () => {
         return OTasks.Parallel.ForEach <TSource>(part, body);
     }
                ));
 }
Ejemplo n.º 2
0
 public static OTasks.ParallelLoopResult ForEach <TSource, TLocal>(global::System.Collections.Concurrent.Partitioner <TSource> source, OTasks.ParallelOptions parallelOptions, Func <TLocal> localInit, Func <TSource, OTasks.ParallelLoopState, TLocal, TLocal> body, Action <TLocal> localFinally)
 {
     throw new NotImplementedException("The Parallel.ForEach<TSource, TLocal>(...) overloads are not instrumented by Chess.");
 }