Browse Source

Put back unsupported EventWaitHandle and Mutex constructors.

Martin Baulig 13 years ago
parent
commit
988f522b36

+ 19 - 0
mcs/class/corlib/System.Threading/EventWaitHandle.cs

@@ -148,6 +148,25 @@ namespace System.Threading
 			return true;
 		}
 #else
+		public EventWaitHandle (bool initialState, EventResetMode mode, string name)
+		{
+			throw new NotSupportedException ();
+		}
+		
+		public EventWaitHandle (bool initialState, EventResetMode mode,
+		                        string name, out bool createdNew)
+		{
+			throw new NotSupportedException ();
+		}
+		
+		
+		public EventWaitHandle (bool initialState, EventResetMode mode,
+		                        string name, out bool createdNew,
+		                        EventWaitHandleSecurity eventSecurity)
+		{
+			throw new NotSupportedException ();
+		}
+
 		public static EventWaitHandle OpenExisting (string name)
 		{
 			throw new NotSupportedException (); 

+ 15 - 0
mcs/class/corlib/System.Threading/Mutex.cs

@@ -162,6 +162,21 @@ namespace System.Threading
 			return true;
 		}
 #else
+		public Mutex (bool initiallyOwned, string name)
+		{
+			throw new NotSupportedException ();
+		}
+		
+		public Mutex (bool initiallyOwned, string name, out bool createdNew)
+		{
+			throw new NotSupportedException ();
+		}
+		
+		public Mutex (bool initiallyOwned, string name, out bool createdNew, MutexSecurity mutexSecurity)
+		{
+			throw new NotSupportedException ();
+		}
+
 		public static Mutex OpenExisting (string name)
 		{
 			throw new NotSupportedException ();