2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Threading / ThreadState.cs
index 80ff1f29d322f6ad87135f9c679a9f50ee8940f8..fb2545950884587e930ed70dbd6f85e1c05fd7ba 100644 (file)
@@ -9,42 +9,52 @@
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
 
-namespace System.Threading {
+#if NET_2_0
+using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
+#endif
 
+namespace System.Threading {
 
-       /// <summary>
-       /// </summary>
        [Flags]
+#if NET_2_0
+       [Serializable]
+       [ComVisible (true)]
+#endif
        public enum ThreadState {
-
-               /// <summary>
-               /// </summary>
                Running = 0x00000000,
-
-               /// <summary>
-               /// </summary>
+               StopRequested = 0x00000001,
+               SuspendRequested = 0x00000002,
                Background = 0x00000004,
-
-               /// <summary>
-               /// </summary>
                Unstarted = 0x00000008,
-
-               /// <summary>
-               /// </summary>
                Stopped = 0x00000010,
-
-               /// <summary>
-               /// </summary>
                WaitSleepJoin = 0x00000020,
-
-               /// <summary>
-               /// </summary>
+               Suspended = 0x00000040,
                AbortRequested = 0x00000080,
-
-               /// <summary>
-               /// </summary>
                Aborted = 0x00000100,
-       } // ThreadState
+   } // ThreadState
 
 } // System.Threading