Browse Source

2005-10-06 Sebastien Pouliot <[email protected]>

	* Thread.cs: Added new attributes, [ReliabilityContract] for 
	destructor and [Obsolete] for [Get|Set]CompressedStack, that were 
	added in 2.0 RC.


svn path=/trunk/mcs/; revision=51331
Sebastien Pouliot 20 năm trước cách đây
mục cha
commit
00a61cceaf

+ 6 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,9 @@
+2005-10-06  Sebastien Pouliot  <[email protected]> 
+
+	* Thread.cs: Added new attributes, [ReliabilityContract] for 
+	destructor and [Obsolete] for [Get|Set]CompressedStack, that were 
+	added in 2.0 RC.
+
 2005-09-11  Zoltan Varga  <[email protected]>
 
 	* Thread.cs (MemoryBarrier): Make this an icall.

+ 9 - 0
mcs/class/corlib/System.Threading/Thread.cs

@@ -666,6 +666,9 @@ namespace System.Threading {
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
 		private extern void Thread_free_internal(IntPtr handle);
 
+#if NET_2_0
+		[ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
 		~Thread() {
 			// Free up the handle
 			if (system_thread_handle != (IntPtr) 0)
@@ -911,6 +914,9 @@ namespace System.Threading {
 		// But it's there!
 		[SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
 		[StrongNameIdentityPermission (SecurityAction.LinkDemand, PublicKey="00000000000000000400000000000000")]
+#if NET_2_0
+		[Obsolete ("see CompressedStack class")]
+#endif
 #if NET_1_1
 		public
 #else
@@ -930,6 +936,9 @@ namespace System.Threading {
 		// But it's there!
 		[SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
 		[StrongNameIdentityPermission (SecurityAction.LinkDemand, PublicKey="00000000000000000400000000000000")]
+#if NET_2_0
+		[Obsolete ("see CompressedStack class")]
+#endif
 #if NET_1_1
 		public
 #else