X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Threading%2FThread.cs;fp=mcs%2Fclass%2Fcorlib%2FSystem.Threading%2FThread.cs;h=6342136b37bd0b78e49aa650285442b84b4f0fc0;hb=50791d90f42615d3ddd2251c08e25daaab9acce6;hp=a2e3f5b685de58f6e2dec02ebb8b92511d5907b2;hpb=bb50c3f3c943ea85d49df160d45f8edea0005d10;p=mono.git diff --git a/mcs/class/corlib/System.Threading/Thread.cs b/mcs/class/corlib/System.Threading/Thread.cs index a2e3f5b685d..6342136b37b 100644 --- a/mcs/class/corlib/System.Threading/Thread.cs +++ b/mcs/class/corlib/System.Threading/Thread.cs @@ -489,6 +489,24 @@ namespace System.Threading { void ClearAbortReason () { } +#else + [Obsolete ("Thread.Abort is not supported on the current platform.", true)] + public void Abort () + { + throw new NotSupportedException ("Thread.Abort is not supported on the current platform."); + } + + [Obsolete ("Thread.Abort is not supported on the current platform.", true)] + public void Abort (object stateInfo) + { + throw new NotSupportedException ("Thread.Abort is not supported on the current platform."); + } + + [Obsolete ("Thread.ResetAbort is not supported on the current platform.", true)] + public static void ResetAbort () + { + throw new NotSupportedException ("Thread.ResetAbort is not supported on the current platform."); + } #endif // MONO_FEATURE_THREAD_ABORT [MethodImplAttribute (MethodImplOptions.InternalCall)] @@ -724,5 +742,19 @@ namespace System.Threading { res [threads [i]] = new StackTrace ((StackFrame[])stack_frames [i]); return res; } + +#if !MONO_FEATURE_THREAD_SUSPEND_RESUME + [Obsolete ("Thread.Suspend is not supported on the current platform.", true)] + public void Suspend () + { + throw new NotSupportedException ("Thread.Suspend is not supported on the current platform."); + } + + [Obsolete ("Thread.Resume is not supported on the current platform.", true)] + public void Resume () + { + throw new NotSupportedException ("Thread.Resume is not supported on the current platform."); + } +#endif } }