mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
89 lines
2.8 KiB
C#
Executable File
89 lines
2.8 KiB
C#
Executable File
//
|
|
// System.Threading.ThreadPool.cs
|
|
//
|
|
// Author:
|
|
// Dick Porter ([email protected])
|
|
//
|
|
// (C) Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
|
|
namespace System.Threading
|
|
{
|
|
public sealed class ThreadPool
|
|
{
|
|
public static bool BindHandle(IntPtr osHandle) {
|
|
// FIXME
|
|
return(false);
|
|
}
|
|
|
|
public static bool QueueUserWorkItem(WaitCallback callback) {
|
|
// FIXME
|
|
return(false);
|
|
}
|
|
|
|
public static bool QueueUserWorkItem(WaitCallback callback, object state) {
|
|
// FIXME
|
|
return(false);
|
|
}
|
|
|
|
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
if(millisecondsTimeOutInterval < -1) {
|
|
throw new ArgumentOutOfRangeException("timeout < -1");
|
|
}
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
if(millisecondsTimeOutInterval < -1) {
|
|
throw new ArgumentOutOfRangeException("timeout < -1");
|
|
}
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, TimeSpan timeout, bool executeOnlyOnce) {
|
|
// LAMESPEC: I assume it means "timeout" when it says "millisecondsTimeOutInterval"
|
|
if(timeout.Milliseconds < -1) {
|
|
throw new ArgumentOutOfRangeException("timeout < -1");
|
|
}
|
|
if(timeout.Milliseconds > Int32.MaxValue) {
|
|
throw new NotSupportedException("timeout too large");
|
|
}
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static bool UnsafeQueueUserWorkItem(WaitCallback callback, object state) {
|
|
// FIXME
|
|
return(false);
|
|
}
|
|
|
|
public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, TimeSpan timeout, bool executeOnlyOnce) {
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
|
|
public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) {
|
|
// FIXME
|
|
return(null);
|
|
}
|
|
}
|
|
}
|