Files
mono/mcs/class/corlib/System.Threading/ThreadPool.cs
T
Dick Porter d3f63d2d18 2001-11-26 Dick Porter <[email protected]>
* Thread.cs: DataSlot uses a single system TLS slot, and a
	hashtable per thread.  Some minor changes to reflect the new
	internal calls using the new IO library, and the newly-supported
	bool returns from internal calls.

	* Monitor.cs: Use bool returns from internal calls now they are
	supported by the runtime.  Coalesce enter with the try_enter
	internal call.

2001-11-26  Dick Porter  <[email protected]>

	* LocalDataStoreSlot.cs: No need to delete a system TLS slot in
	the finalise routine any more

svn path=/trunk/mcs/; revision=1441
2001-11-26 13:17:57 +00:00

92 lines
2.9 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);
}
[CLSCompliant(false)]
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);
}
[CLSCompliant(false)]
public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callback, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) {
// FIXME
return(null);
}
}
}