mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-24 21:54:01 -10:00
Add nullable annotations to System.Threading.ThreadPool ref assembly. (dotnet/corefx#38239)
* Re-generate System.Threading.ThreadPool ref assembly against implementation * Enable nullable context on System.Threading.ThreadPool * Add nullable annotations to System.Threading.ThreadPool Commit migrated from https://github.com/dotnet/corefx/commit/040b28ca57fbe57db32a0b56c977d4956991e34c
This commit is contained in:
1 parent
3b9b13621d
commit
f99391a048
2 files changed
+17
-16
No files matched your search
@@ -14,40 +14,40 @@ namespace System.Threading
|
||||
public sealed partial class RegisteredWaitHandle : System.MarshalByRefObject
|
||||
{
|
||||
internal RegisteredWaitHandle() { }
|
||||
public bool Unregister(System.Threading.WaitHandle waitObject) { throw null; }
|
||||
public bool Unregister(System.Threading.WaitHandle? waitObject) { throw null; }
|
||||
}
|
||||
public static partial class ThreadPool
|
||||
{
|
||||
public static long CompletedWorkItemCount { get { throw null; } }
|
||||
public static long PendingWorkItemCount { get { throw null; } }
|
||||
public static int ThreadCount { get { throw null; } }
|
||||
[System.ObsoleteAttribute("ThreadPool.BindHandle(IntPtr) has been deprecated. Please use ThreadPool.BindHandle(SafeHandle) instead.", false)]
|
||||
public static bool BindHandle(System.IntPtr osHandle) { throw null; }
|
||||
public static bool BindHandle(System.Runtime.InteropServices.SafeHandle osHandle) { throw null; }
|
||||
public static long CompletedWorkItemCount { get { throw null; } }
|
||||
public static void GetAvailableThreads(out int workerThreads, out int completionPortThreads) { throw null; }
|
||||
public static void GetMaxThreads(out int workerThreads, out int completionPortThreads) { throw null; }
|
||||
public static void GetMinThreads(out int workerThreads, out int completionPortThreads) { throw null; }
|
||||
public static long PendingWorkItemCount { get { throw null; } }
|
||||
public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack) { throw null; }
|
||||
public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; }
|
||||
public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack, object? state) { throw null; }
|
||||
public static bool QueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, System.TimeSpan timeout, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, long millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, System.TimeSpan timeout, bool executeOnlyOnce) { throw null; }
|
||||
[System.CLSCompliantAttribute(false)]
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static bool SetMaxThreads(int workerThreads, int completionPortThreads) { throw null; }
|
||||
public static bool SetMinThreads(int workerThreads, int completionPortThreads) { throw null; }
|
||||
public static int ThreadCount { get { throw null; } }
|
||||
[System.CLSCompliantAttribute(false)]
|
||||
public unsafe static bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; }
|
||||
public static bool UnsafeQueueUserWorkItem(System.Threading.IThreadPoolWorkItem callBack, bool preferLocal) { throw null; }
|
||||
public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; }
|
||||
public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object? state) { throw null; }
|
||||
public static bool UnsafeQueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, System.TimeSpan timeout, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, long millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, System.TimeSpan timeout, bool executeOnlyOnce) { throw null; }
|
||||
[System.CLSCompliantAttribute(false)]
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object? state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
|
||||
}
|
||||
public delegate void WaitCallback(object state);
|
||||
public delegate void WaitOrTimerCallback(object state, bool timedOut);
|
||||
public delegate void WaitCallback(object? state);
|
||||
public delegate void WaitOrTimerCallback(object? state, bool timedOut);
|
||||
}
|
||||
Reference in new issue
Block a user