2008-09-05 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Fri, 5 Sep 2008 09:12:35 +0000 (09:12 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 5 Sep 2008 09:12:35 +0000 (09:12 -0000)
* System.Core.dll.sources: Add System.Threading

svn path=/trunk/mcs/; revision=112366

mcs/class/System.Core/ChangeLog
mcs/class/System.Core/System.Core.dll.sources
mcs/class/System.Core/System.Threading/ChangeLog [new file with mode: 0644]
mcs/class/System.Core/System.Threading/LockRecursionException.cs [new file with mode: 0644]
mcs/class/System.Core/System.Threading/LockRecursionPolicy.cs [new file with mode: 0644]

index b40d4e90fa881036e7a196008df4eeab09322274..36d27ce7de2af84b37101baec06b929dac47858e 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-05  Marek Safar  <marek.safar@gmail.com>
+
+       * System.Core.dll.sources: Add System.Threading
+
 2008-08-05  Sebastien Pouliot  <sebastien@ximian.com>
 
        * System.Core.dll.sources: Add new files for crypto.
index 16797bab999536135acb5f0764b44b2abb41cad3..0ab02d9ec92cce47cb14fca8d2aa50237f476f1b 100644 (file)
@@ -79,3 +79,6 @@ System.Security.Cryptography/SHA384Cng.cs
 System.Security.Cryptography/SHA384CryptoServiceProvider.cs
 System.Security.Cryptography/SHA512Cng.cs
 System.Security.Cryptography/SHA512CryptoServiceProvider.cs
+System.Threading/LockRecursionException.cs
+System.Threading/LockRecursionPolicy.cs
+
diff --git a/mcs/class/System.Core/System.Threading/ChangeLog b/mcs/class/System.Core/System.Threading/ChangeLog
new file mode 100644 (file)
index 0000000..8b3aca3
--- /dev/null
@@ -0,0 +1,4 @@
+2008-09-05  Marek Safar <marek.safar@gmail.com>
+
+       * ChangeLog: Added
+
diff --git a/mcs/class/System.Core/System.Threading/LockRecursionException.cs b/mcs/class/System.Core/System.Threading/LockRecursionException.cs
new file mode 100644 (file)
index 0000000..7fa88d4
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * System.Threading.LockRecursionException
+ *
+ * Author(s)
+ *     Marek Safar <marek.safar@gmail.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.Threading
+{
+       [Serializable]
+       public class LockRecursionException : Exception
+       {
+               public LockRecursionException () 
+                       : base ()
+               {
+               }
+
+               public LockRecursionException (string message) 
+                       : base (message)
+               {
+               }
+
+               public LockRecursionException (string message, Exception e) 
+                       : base (message, e)
+               {
+               }
+
+               protected LockRecursionException (SerializationInfo info, StreamingContext sc)
+                        : base (info, sc)
+               {
+               }
+       }
+}
diff --git a/mcs/class/System.Core/System.Threading/LockRecursionPolicy.cs b/mcs/class/System.Core/System.Threading/LockRecursionPolicy.cs
new file mode 100644 (file)
index 0000000..9429a1d
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * System.Threading.LockRecursionPolicy
+ *
+ * Author(s)
+ *     Marek Safar <marek.safar@gmail.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+namespace System.Threading
+{
+       [Serializable]
+       public enum LockRecursionPolicy
+       {
+               NoRecursion,
+               SupportsRecursion
+       }
+}