2
0
Эх сурвалжийг харах

2004-05-13 Sebastien Pouliot <[email protected]>

	* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
	corcompare. Both throw a NotImplementedException.
	* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
	overloads) to please corcompare. All throw a NotImplementedException.

svn path=/trunk/mcs/; revision=27293
Sebastien Pouliot 21 жил өмнө
parent
commit
29ddfa3b81

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

@@ -2,6 +2,10 @@
 
 	* CompressedStack.cs: Added an internal constructor so a default one
 	doesn't appear with corcompare.
+	* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
+	corcompare. Both throw a NotImplementedException.
+	* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
+	overloads) to please corcompare. All throw a NotImplementedException.
 
 2004-05-12  Zoltan Varga  <[email protected]>
 

+ 16 - 1
mcs/class/corlib/System.Threading/Thread.cs

@@ -5,6 +5,7 @@
 //   Dick Porter ([email protected])
 //
 // (C) Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004 Novell (http://www.novell.com)
 //
 
 using System.Runtime.Remoting.Contexts;
@@ -492,8 +493,22 @@ namespace System.Threading
 			return(ret);
 		}
 
+#if NET_1_1
+		[MonoTODO ("seems required for multi-processors systems like Itanium")]
+		public static void MemoryBarrier ()
+		{
+			throw new NotImplementedException ();
+		}
+#endif
 		[MonoTODO]
-		public void Resume() {
+		public void Resume () 
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public static void SpinWait (int iterations) 
+		{
 			throw new NotImplementedException ();
 		}
 

+ 35 - 0
mcs/class/corlib/System.Threading/ThreadPool.cs

@@ -7,9 +7,12 @@
 //   Maurer Dietmar ([email protected])
 //
 // (C) Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004 Novell (http://www.novell.com)
 //
+
 using System;
 using System.Collections;
+using System.Globalization;
 using System.Runtime.CompilerServices;
 
 namespace System.Threading {
@@ -116,6 +119,38 @@ namespace System.Threading {
 				return false;
 			return true;
 		}
+		
+		[MonoTODO]
+		public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject (WaitHandle waitObject,
+			WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval,
+			bool executeOnlyOnce) 
+		{
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject (WaitHandle waitObject,
+			WaitOrTimerCallback callBack, object state, long millisecondsTimeOutInterval,
+			bool executeOnlyOnce) 
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject (WaitHandle waitObject,
+			WaitOrTimerCallback callBack, object state, TimeSpan timeout,
+			bool executeOnlyOnce) 
+		{
+			throw new NotImplementedException ();
+		}
 
+		[MonoTODO]
+		[CLSCompliant (false)]
+		public static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject (WaitHandle waitObject,
+			WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval,
+			bool executeOnlyOnce) 
+		{
+			throw new NotImplementedException ();
+		}
 	}
 }