//public static ParallelLoopResult ForEach<TSource>(OrderablePartitioner<TSource> source, Action<TSource, ParallelLoopState, long> body); public static OTasks.ParallelLoopResult ForEach <TSource>(global::System.Collections.Concurrent.OrderablePartitioner <TSource> part, Action <TSource, OTasks.ParallelLoopState, long> 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); } )); }
public static OTasks.ParallelLoopResult ForEach <TSource, TLocal>(global::System.Collections.Concurrent.OrderablePartitioner <TSource> source, OTasks.ParallelOptions parallelOptions, Func <TLocal> localInit, Func <TSource, OTasks.ParallelLoopState, long, TLocal, TLocal> body, Action <TLocal> localFinally) { throw new NotImplementedException("The Parallel.ForEach<TSource, TLocal>(...) overloads are not instrumented by Chess."); }