m
This commit is contained in:
@@ -0,0 +1,223 @@
|
||||
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: 0x02000359 RID: 857
|
||||
[Token(Token = "0x2000359")]
|
||||
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: 0x06002010 RID: 8208 RVA: 0x000155E8 File Offset: 0x000137E8
|
||||
[Token(Token = "0x6002010")]
|
||||
[Address(RVA = "0xB54470", Offset = "0xB53470", VA = "0x180B54470")]
|
||||
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: 0x06002011 RID: 8209 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002011")]
|
||||
[Address(RVA = "0xB53DB0", Offset = "0xB52DB0", VA = "0x180B53DB0")]
|
||||
public static void GetMinThreads(out int workerThreads, out int completionPortThreads)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002012 RID: 8210 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002012")]
|
||||
[Address(RVA = "0xB54050", Offset = "0xB53050", VA = "0x180B54050")]
|
||||
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: 0x06002013 RID: 8211 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002013")]
|
||||
[Address(RVA = "0xB54380", Offset = "0xB53380", VA = "0x180B54380")]
|
||||
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: 0x06002014 RID: 8212 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002014")]
|
||||
[Address(RVA = "0xB54250", Offset = "0xB53250", VA = "0x180B54250")]
|
||||
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: 0x06002015 RID: 8213 RVA: 0x00015600 File Offset: 0x00013800
|
||||
[Token(Token = "0x6002015")]
|
||||
[Address(RVA = "0xB54020", Offset = "0xB53020", VA = "0x180B54020")]
|
||||
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: 0x06002016 RID: 8214 RVA: 0x00015618 File Offset: 0x00013818
|
||||
[Token(Token = "0x6002016")]
|
||||
[Address(RVA = "0xB53FF0", Offset = "0xB52FF0", VA = "0x180B53FF0")]
|
||||
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: 0x06002017 RID: 8215 RVA: 0x00015630 File Offset: 0x00013830
|
||||
[Token(Token = "0x6002017")]
|
||||
[Address(RVA = "0xB54660", Offset = "0xB53660", VA = "0x180B54660")]
|
||||
public static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object state)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002018 RID: 8216 RVA: 0x00015648 File Offset: 0x00013848
|
||||
[Token(Token = "0x6002018")]
|
||||
[Address(RVA = "0xB53E00", Offset = "0xB52E00", VA = "0x180B53E00")]
|
||||
private static bool QueueUserWorkItemHelper(WaitCallback callBack, object state, ref StackCrawlMark stackMark, bool compressStack)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002019 RID: 8217 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002019")]
|
||||
[Address(RVA = "0xB54580", Offset = "0xB53580", VA = "0x180B54580")]
|
||||
internal static void UnsafeQueueCustomWorkItem(IThreadPoolWorkItem workItem, bool forceGlobal)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600201A RID: 8218 RVA: 0x00015660 File Offset: 0x00013860
|
||||
[Token(Token = "0x600201A")]
|
||||
[Address(RVA = "0xB54480", Offset = "0xB53480", VA = "0x180B54480")]
|
||||
internal static bool TryPopCustomWorkItem(IThreadPoolWorkItem workItem)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600201B RID: 8219 RVA: 0x00015678 File Offset: 0x00013878
|
||||
[Token(Token = "0x600201B")]
|
||||
[Address(RVA = "0xB54460", Offset = "0xB53460", VA = "0x180B54460")]
|
||||
internal static bool RequestWorkerThread()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600201C RID: 8220 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600201C")]
|
||||
[Address(RVA = "0xB53D00", Offset = "0xB52D00", VA = "0x180B53D00")]
|
||||
private static void EnsureVMInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600201D RID: 8221 RVA: 0x00015690 File Offset: 0x00013890
|
||||
[Token(Token = "0x600201D")]
|
||||
[Address(RVA = "0xB54470", Offset = "0xB53470", VA = "0x180B54470")]
|
||||
private static bool SetMinThreadsNative(int workerThreads, int completionPortThreads)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600201E RID: 8222 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600201E")]
|
||||
[Address(RVA = "0xB53DB0", Offset = "0xB52DB0", VA = "0x180B53DB0")]
|
||||
private static void GetMinThreadsNative(out int workerThreads, out int completionPortThreads)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600201F RID: 8223 RVA: 0x000156A8 File Offset: 0x000138A8
|
||||
[Token(Token = "0x600201F")]
|
||||
[Address(RVA = "0xB53DE0", Offset = "0xB52DE0", VA = "0x180B53DE0")]
|
||||
internal static bool NotifyWorkItemComplete()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002020 RID: 8224 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002020")]
|
||||
[Address(RVA = "0x92BEF0", Offset = "0x92AEF0", VA = "0x18092BEF0")]
|
||||
internal static void ReportThreadStatus(bool isWorking)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002021 RID: 8225 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002021")]
|
||||
[Address(RVA = "0xB526D0", Offset = "0xB516D0", VA = "0x180B526D0")]
|
||||
internal static void NotifyWorkItemProgress()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002022 RID: 8226 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002022")]
|
||||
[Address(RVA = "0xB53DF0", Offset = "0xB52DF0", VA = "0x180B53DF0")]
|
||||
internal static void NotifyWorkItemProgressNative()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002023 RID: 8227 RVA: 0x000156C0 File Offset: 0x000138C0
|
||||
[Token(Token = "0x6002023")]
|
||||
[Address(RVA = "0xB53DD0", Offset = "0xB52DD0", VA = "0x180B53DD0")]
|
||||
internal static bool IsThreadPoolHosted()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002024 RID: 8228 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002024")]
|
||||
[Address(RVA = "0xB53DC0", Offset = "0xB52DC0", VA = "0x180B53DC0")]
|
||||
private static void InitializeVMTp(ref bool enableWorkerTracking)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user