Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

224 lines
13 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers.</summary>
// Token: 0x0200033F RID: 831
[Token(Token = "0x200033F")]
public static class ThreadPool
{
/// <summary>Sets the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.</summary>
/// <param name="workerThreads">The minimum number of worker threads that the thread pool creates on demand.</param>
/// <param name="completionPortThreads">The minimum number of asynchronous I/O threads that the thread pool creates on demand.</param>
/// <returns>
/// <see langword="true" /> if the change is successful; otherwise, <see langword="false" />.</returns>
// Token: 0x06001E0E RID: 7694 RVA: 0x00013248 File Offset: 0x00011448
[Token(Token = "0x6001E0E")]
[Address(RVA = "0x1DA9360", Offset = "0x1DA8160", VA = "0x181DA9360")]
public static bool SetMinThreads(int workerThreads, int completionPortThreads)
{
return default(bool);
}
/// <summary>Retrieves the minimum number of threads the thread pool creates on demand, as new requests are made, before switching to an algorithm for managing thread creation and destruction.</summary>
/// <param name="workerThreads">When this method returns, contains the minimum number of worker threads that the thread pool creates on demand.</param>
/// <param name="completionPortThreads">When this method returns, contains the minimum number of asynchronous I/O threads that the thread pool creates on demand.</param>
// Token: 0x06001E0F RID: 7695 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E0F")]
[Address(RVA = "0x1DA8D30", Offset = "0x1DA7B30", VA = "0x181DA8D30")]
public static void GetMinThreads(out int workerThreads, out int completionPortThreads)
{
}
// Token: 0x06001E10 RID: 7696 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E10")]
[Address(RVA = "0x1DA8F50", Offset = "0x1DA7D50", VA = "0x181DA8F50")]
private static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce, ref StackCrawlMark stackMark, bool compressStack)
{
return null;
}
/// <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a 32-bit signed integer for the time-out in milliseconds.</summary>
/// <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
/// <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
/// <param name="state">The object that is passed to the delegate.</param>
/// <param name="millisecondsTimeOutInterval">The time-out in milliseconds. If the <paramref name="millisecondsTimeOutInterval" /> parameter is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="millisecondsTimeOutInterval" /> is -1, the function's time-out interval never elapses.</param>
/// <param name="executeOnlyOnce">
/// <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
/// <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that encapsulates the native handle.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsTimeOutInterval" /> parameter is less than -1.</exception>
// Token: 0x06001E11 RID: 7697 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E11")]
[Address(RVA = "0x1DA9270", Offset = "0x1DA8070", VA = "0x181DA9270")]
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce)
{
return null;
}
/// <summary>Registers a delegate to wait for a <see cref="T:System.Threading.WaitHandle" />, specifying a <see cref="T:System.TimeSpan" /> value for the time-out.</summary>
/// <param name="waitObject">The <see cref="T:System.Threading.WaitHandle" /> to register. Use a <see cref="T:System.Threading.WaitHandle" /> other than <see cref="T:System.Threading.Mutex" />.</param>
/// <param name="callBack">The <see cref="T:System.Threading.WaitOrTimerCallback" /> delegate to call when the <paramref name="waitObject" /> parameter is signaled.</param>
/// <param name="state">The object passed to the delegate.</param>
/// <param name="timeout">The time-out represented by a <see cref="T:System.TimeSpan" />. If <paramref name="timeout" /> is 0 (zero), the function tests the object's state and returns immediately. If <paramref name="timeout" /> is -1, the function's time-out interval never elapses.</param>
/// <param name="executeOnlyOnce">
/// <see langword="true" /> to indicate that the thread will no longer wait on the <paramref name="waitObject" /> parameter after the delegate has been called; <see langword="false" /> to indicate that the timer is reset every time the wait operation completes until the wait is unregistered.</param>
/// <returns>The <see cref="T:System.Threading.RegisteredWaitHandle" /> that encapsulates the native handle.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="timeout" /> parameter is less than -1.</exception>
/// <exception cref="T:System.NotSupportedException">The <paramref name="timeout" /> parameter is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
// Token: 0x06001E12 RID: 7698 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E12")]
[Address(RVA = "0x1DA9110", Offset = "0x1DA7F10", VA = "0x181DA9110")]
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, TimeSpan timeout, bool executeOnlyOnce)
{
return null;
}
/// <summary>Queues a method for execution, and specifies an object containing data to be used by the method. The method executes when a thread pool thread becomes available.</summary>
/// <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> representing the method to execute.</param>
/// <param name="state">An object containing data to be used by the method.</param>
/// <returns>
/// <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
/// <exception cref="T:System.NotSupportedException">The common language runtime (CLR) is hosted, and the host does not support this action.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callBack" /> is <see langword="null" />.</exception>
// Token: 0x06001E13 RID: 7699 RVA: 0x00013260 File Offset: 0x00011460
[Token(Token = "0x6001E13")]
[Address(RVA = "0x1DA8F20", Offset = "0x1DA7D20", VA = "0x181DA8F20")]
public static bool QueueUserWorkItem(WaitCallback callBack, object state)
{
return default(bool);
}
/// <summary>Queues a method for execution. The method executes when a thread pool thread becomes available.</summary>
/// <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> that represents the method to be executed.</param>
/// <returns>
/// <see langword="true" /> if the method is successfully queued; <see cref="T:System.NotSupportedException" /> is thrown if the work item could not be queued.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callBack" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The common language runtime (CLR) is hosted, and the host does not support this action.</exception>
// Token: 0x06001E14 RID: 7700 RVA: 0x00013278 File Offset: 0x00011478
[Token(Token = "0x6001E14")]
[Address(RVA = "0x1DA8EF0", Offset = "0x1DA7CF0", VA = "0x181DA8EF0")]
public static bool QueueUserWorkItem(WaitCallback callBack)
{
return default(bool);
}
/// <summary>Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.</summary>
/// <param name="callBack">A <see cref="T:System.Threading.WaitCallback" /> that represents the delegate to invoke when a thread in the thread pool picks up the work item.</param>
/// <param name="state">The object that is passed to the delegate when serviced from the thread pool.</param>
/// <returns>
/// <see langword="true" /> if the method succeeds; <see cref="T:System.OutOfMemoryException" /> is thrown if the work item could not be queued.</returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
/// <exception cref="T:System.ApplicationException">An out-of-memory condition was encountered.</exception>
/// <exception cref="T:System.OutOfMemoryException">The work item could not be queued.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callBack" /> is <see langword="null" />.</exception>
// Token: 0x06001E15 RID: 7701 RVA: 0x00013290 File Offset: 0x00011490
[Token(Token = "0x6001E15")]
[Address(RVA = "0x1DA9550", Offset = "0x1DA8350", VA = "0x181DA9550")]
public static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object state)
{
return default(bool);
}
// Token: 0x06001E16 RID: 7702 RVA: 0x000132A8 File Offset: 0x000114A8
[Token(Token = "0x6001E16")]
[Address(RVA = "0x1DA8D70", Offset = "0x1DA7B70", VA = "0x181DA8D70")]
private static bool QueueUserWorkItemHelper(WaitCallback callBack, object state, ref StackCrawlMark stackMark, bool compressStack)
{
return default(bool);
}
// Token: 0x06001E17 RID: 7703 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E17")]
[Address(RVA = "0x1DA9470", Offset = "0x1DA8270", VA = "0x181DA9470")]
internal static void UnsafeQueueCustomWorkItem(IThreadPoolWorkItem workItem, bool forceGlobal)
{
}
// Token: 0x06001E18 RID: 7704 RVA: 0x000132C0 File Offset: 0x000114C0
[Token(Token = "0x6001E18")]
[Address(RVA = "0x1DA9370", Offset = "0x1DA8170", VA = "0x181DA9370")]
internal static bool TryPopCustomWorkItem(IThreadPoolWorkItem workItem)
{
return default(bool);
}
// Token: 0x06001E19 RID: 7705 RVA: 0x000132D8 File Offset: 0x000114D8
[Token(Token = "0x6001E19")]
[Address(RVA = "0x1DA9350", Offset = "0x1DA8150", VA = "0x181DA9350")]
internal static bool RequestWorkerThread()
{
return default(bool);
}
// Token: 0x06001E1A RID: 7706 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E1A")]
[Address(RVA = "0x1DA8C80", Offset = "0x1DA7A80", VA = "0x181DA8C80")]
private static void EnsureVMInitialized()
{
}
// Token: 0x06001E1B RID: 7707 RVA: 0x000132F0 File Offset: 0x000114F0
[Token(Token = "0x6001E1B")]
[Address(RVA = "0x1DA9360", Offset = "0x1DA8160", VA = "0x181DA9360")]
private static bool SetMinThreadsNative(int workerThreads, int completionPortThreads)
{
return default(bool);
}
// Token: 0x06001E1C RID: 7708 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E1C")]
[Address(RVA = "0x1DA8D30", Offset = "0x1DA7B30", VA = "0x181DA8D30")]
private static void GetMinThreadsNative(out int workerThreads, out int completionPortThreads)
{
}
// Token: 0x06001E1D RID: 7709 RVA: 0x00013308 File Offset: 0x00011508
[Token(Token = "0x6001E1D")]
[Address(RVA = "0x1DA8D50", Offset = "0x1DA7B50", VA = "0x181DA8D50")]
internal static bool NotifyWorkItemComplete()
{
return default(bool);
}
// Token: 0x06001E1E RID: 7710 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E1E")]
[Address(RVA = "0x450D90", Offset = "0x44FB90", VA = "0x180450D90")]
internal static void ReportThreadStatus(bool isWorking)
{
}
// Token: 0x06001E1F RID: 7711 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E1F")]
[Address(RVA = "0x1DA7630", Offset = "0x1DA6430", VA = "0x181DA7630")]
internal static void NotifyWorkItemProgress()
{
}
// Token: 0x06001E20 RID: 7712 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E20")]
[Address(RVA = "0x1DA8D60", Offset = "0x1DA7B60", VA = "0x181DA8D60")]
internal static void NotifyWorkItemProgressNative()
{
}
// Token: 0x06001E21 RID: 7713 RVA: 0x00013320 File Offset: 0x00011520
[Token(Token = "0x6001E21")]
[Address(RVA = "0x1B65780", Offset = "0x1B64580", VA = "0x181B65780")]
internal static bool IsThreadPoolHosted()
{
return default(bool);
}
// Token: 0x06001E22 RID: 7714 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E22")]
[Address(RVA = "0x1DA8D40", Offset = "0x1DA7B40", VA = "0x181DA8D40")]
private static void InitializeVMTp(ref bool enableWorkerTracking)
{
}
}
}