소스 검색

* Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op because managed and native threads are currently bound together.

svn path=/trunk/mcs/; revision=106145
Kornél Pál 17 년 전
부모
커밋
2d861bf887
2개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 0
      mcs/class/corlib/System.Threading/ChangeLog
  2. 2 4
      mcs/class/corlib/System.Threading/Thread.cs

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

@@ -1,3 +1,8 @@
+2008-06-18  Kornél Pál  <[email protected]>
+
+	* Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op
+	because managed and native threads are currently bound together.
+
 2008-06-14  Zoltan Varga  <[email protected]>
 
 	* Thread.cs: Sync layout with unmanaged side.

+ 2 - 4
mcs/class/corlib/System.Threading/Thread.cs

@@ -956,18 +956,16 @@ namespace System.Threading {
 			CurrentThread.critical_region_level--;
 		}
 
-		[MonoTODO("Not implemented")]
 		[ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.MayFail)]
 		public static void BeginThreadAffinity ()
 		{
-			throw new NotImplementedException ();
+			// Managed and native threads are currently bound together.
 		}
 
-		[MonoTODO("Not implemented")]
 		[ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.MayFail)]
 		public static void EndThreadAffinity ()
 		{
-			throw new NotImplementedException ();
+			// Managed and native threads are currently bound together.
 		}
 		
 		public ApartmentState GetApartmentState ()