72 lines
2.9 KiB
C#
72 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading.Tasks
|
|
{
|
|
/// <summary>Provides support for parallel loops and regions.</summary>
|
|
// Token: 0x02000381 RID: 897
|
|
[Token(Token = "0x2000381")]
|
|
public static class Parallel
|
|
{
|
|
/// <summary>Executes a <see langword="for" /> (<see langword="For" /> in Visual Basic) loop in which iterations may run in parallel.</summary>
|
|
/// <param name="fromInclusive">The start index, inclusive.</param>
|
|
/// <param name="toExclusive">The end index, exclusive.</param>
|
|
/// <param name="body">The delegate that is invoked once per iteration.</param>
|
|
/// <returns>A structure that contains information about which portion of the loop completed.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
|
|
// Token: 0x060020EB RID: 8427 RVA: 0x00015CC0 File Offset: 0x00013EC0
|
|
[Token(Token = "0x60020EB")]
|
|
[Address(RVA = "0xB40D20", Offset = "0xB3FD20", VA = "0x180B40D20")]
|
|
public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body)
|
|
{
|
|
return default(ParallelLoopResult);
|
|
}
|
|
|
|
// Token: 0x060020EC RID: 8428 RVA: 0x00015CD8 File Offset: 0x00013ED8
|
|
[Token(Token = "0x60020EC")]
|
|
[Address(RVA = "0x25FAAF0", Offset = "0x25F9AF0", VA = "0x1825FAAF0")]
|
|
private static ParallelLoopResult ForWorker<TLocal>(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int> body, Action<int, ParallelLoopState> bodyWithState, Func<int, ParallelLoopState, TLocal, TLocal> bodyWithLocal, Func<TLocal> localInit, Action<TLocal> localFinally)
|
|
{
|
|
return default(ParallelLoopResult);
|
|
}
|
|
|
|
// Token: 0x060020ED RID: 8429 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60020ED")]
|
|
[Address(RVA = "0xB40E30", Offset = "0xB3FE30", VA = "0x180B40E30")]
|
|
internal static void ThrowIfReducableToSingleOCE(IEnumerable<Exception> excCollection, CancellationToken ct)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400125A RID: 4698
|
|
[Token(Token = "0x400125A")]
|
|
internal static ParallelOptions s_defaultParallelOptions;
|
|
|
|
// Token: 0x02000382 RID: 898
|
|
[Token(Token = "0x2000382")]
|
|
internal struct LoopTimer
|
|
{
|
|
// Token: 0x060020EF RID: 8431 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60020EF")]
|
|
[Address(RVA = "0xB3FAE0", Offset = "0xB3EAE0", VA = "0x180B3FAE0")]
|
|
public LoopTimer(int nWorkerTaskIndex)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060020F0 RID: 8432 RVA: 0x00015CF0 File Offset: 0x00013EF0
|
|
[Token(Token = "0x60020F0")]
|
|
[Address(RVA = "0xB3FAC0", Offset = "0xB3EAC0", VA = "0x180B3FAC0")]
|
|
public bool LimitExceeded()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x0400125B RID: 4699
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400125B")]
|
|
private int m_timeLimit;
|
|
}
|
|
}
|
|
}
|