Files
2026-04-10 22:50:51 +02:00

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: 0x02000365 RID: 869
[Token(Token = "0x2000365")]
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: 0x06001EDF RID: 7903 RVA: 0x000138F0 File Offset: 0x00011AF0
[Token(Token = "0x6001EDF")]
[Address(RVA = "0x2924850", Offset = "0x2923650", VA = "0x182924850")]
public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body)
{
return default(ParallelLoopResult);
}
// Token: 0x06001EE0 RID: 7904 RVA: 0x00013908 File Offset: 0x00011B08
[Token(Token = "0x6001EE0")]
[Address(RVA = "0x1B5A650", Offset = "0x1B59450", VA = "0x181B5A650")]
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: 0x06001EE1 RID: 7905 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EE1")]
[Address(RVA = "0x2924960", Offset = "0x2923760", VA = "0x182924960")]
internal static void ThrowIfReducableToSingleOCE(IEnumerable<Exception> excCollection, CancellationToken ct)
{
}
// Token: 0x04001197 RID: 4503
[Token(Token = "0x4001197")]
internal static ParallelOptions s_defaultParallelOptions;
// Token: 0x02000366 RID: 870
[Token(Token = "0x2000366")]
internal struct LoopTimer
{
// Token: 0x06001EE3 RID: 7907 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EE3")]
[Address(RVA = "0x1D98B50", Offset = "0x1D97950", VA = "0x181D98B50")]
public LoopTimer(int nWorkerTaskIndex)
{
}
// Token: 0x06001EE4 RID: 7908 RVA: 0x00013920 File Offset: 0x00011B20
[Token(Token = "0x6001EE4")]
[Address(RVA = "0x1D98B30", Offset = "0x1D97930", VA = "0x181D98B30")]
public bool LimitExceeded()
{
return default(bool);
}
// Token: 0x04001198 RID: 4504
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001198")]
private int m_timeLimit;
}
}
}