4.0
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 20 Feb 2010 07:35:54 +0000 (07:35 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 20 Feb 2010 07:35:54 +0000 (07:35 -0000)
svn path=/trunk/mcs/; revision=152118

mcs/class/corlib/System.Threading/ThreadPool.cs
mcs/class/corlib/System.Threading/WaitHandle.cs

index 5dd2d36efc3b2030915452119fcfe9071570cdf0..21578734bd630329c4d25f9562e242b9d31b8948 100644 (file)
@@ -68,7 +68,6 @@ namespace System.Threading {
                [SecurityPermission (SecurityAction.Demand, ControlThread=true)]
                public static extern bool SetMinThreads (int workerThreads, int completionPortThreads);
 
-               [MonoTODO("The max number of threads cannot be decreased.")]
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                [SecurityPermission (SecurityAction.Demand, ControlThread=true)]
                public static extern bool SetMaxThreads (int workerThreads, int completionPortThreads);
index 917b7d49b700b93d264a44481c1dc4e55c300590..fa1804c080627b522cb5213d31fd2a5795b0d59d 100644 (file)
@@ -213,6 +213,13 @@ namespace System.Threading
                        GC.SuppressFinalize (this);
                }
 
+#if NET_4_0
+               public void Dispose ()
+               {
+                       Close ();
+               }
+#endif
+
                public const int WaitTimeout = 258;
 
                //