Revert stalling changes introduced in SpinWait. Add a guard for ntime overflow.
[mono.git] / mcs / class / corlib / System.Threading / HostExecutionContextManager.cs
index b728b2e867f83405bfb2c5301836ede94e346b13..7d979b6cc60a7fa0bac4f9266470166c37c283b2 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -26,7 +26,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+using System.Security.Permissions;
+using System.Runtime.ConstrainedExecution;
 
 namespace System.Threading {
 
@@ -43,17 +44,18 @@ namespace System.Threading {
                }
 
                [MonoTODO]
-               public virtual void Revert (HostExecutionContextSwitcher hostContextSwitcher)
+               [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+               public virtual void Revert (object previousState)
                {
                        throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               public virtual HostExecutionContextSwitcher SetHostExecutionContext (HostExecutionContext hostExecutionContext)
+               [SecurityPermission (SecurityAction.LinkDemand, Infrastructure = true)]
+               public virtual object SetHostExecutionContext (HostExecutionContext hostExecutionContext)
                {
                        throw new NotImplementedException ();
                }
        }
 }
 
-#endif