Author: miguel
Date: 2007-01-02 19:08:53 -0500 (Tue, 02 Jan 2007)
New Revision: 70391
Modified:
trunk/mcs/class/corlib/System.Threading/ChangeLog
trunk/mcs/class/corlib/System.Threading/ThreadPool.cs
Log:
2006-12-31 Miguel de Icaza <[EMAIL PROTECTED]>
* ThreadPool.cs: Stub a method.
Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-01-03 00:06:27 UTC
(rev 70390)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-01-03 00:08:53 UTC
(rev 70391)
@@ -1,3 +1,7 @@
+2006-12-31 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * ThreadPool.cs: Stub a method.
+
2006-12-11 Miguel de Icaza <[EMAIL PROTECTED]>
* WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
Modified: trunk/mcs/class/corlib/System.Threading/ThreadPool.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ThreadPool.cs 2007-01-03
00:06:27 UTC (rev 70390)
+++ trunk/mcs/class/corlib/System.Threading/ThreadPool.cs 2007-01-03
00:08:53 UTC (rev 70391)
@@ -33,6 +33,7 @@
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting.Messaging;
+using System.Runtime.InteropServices;
using System.Security.Permissions;
namespace System.Threading {
@@ -47,10 +48,24 @@
/* nothing to do */
}
#endif
+
+#if NET_2_0
+ [Obsolete("This method is obsolete, use BindHandle(SafeHandle)
instead")]
+#endif
public static bool BindHandle (IntPtr osHandle)
{
return true;
}
+
+#if NET_2_0
+ public static bool BindHandle (SafeHandle osHandle)
+ {
+ if (osHandle == null)
+ throw new ArgumentNullException ("osHandle");
+
+ return true;
+ }
+#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern void GetAvailableThreads (out int
workerThreads, out int completionPortThreads);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches