2004-05-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / ProcessThread.cs
index bbc6d56eb97890f0a5acf19503afab0e68b112f1..4591e24260300d9b5639a1cfea1203cfd07396a4 100755 (executable)
@@ -2,16 +2,28 @@
 // System.Diagnostics.ProcessThread.cs
 //
 // Authors:
-//     Dick Porter (dick@ximian.com)
+//   Dick Porter (dick@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
 //
 // (C) 2002 Ximian, Inc.  http://www.ximian.com
 //
 
 using System.ComponentModel;
+using System.ComponentModel.Design;
+
+namespace System.Diagnostics 
+{
+       [Designer ("System.Diagnostics.Design.ProcessThreadDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
+       public class ProcessThread : Component 
+       {
+
+               [MonoTODO ("Parse parameters")]
+               internal ProcessThread() 
+               {
+               }
 
-namespace System.Diagnostics {
-       public class ProcessThread : Component {
                [MonoTODO]
+               [MonitoringDescription ("The base priority of this thread.")]
                public int BasePriority {
                        get {
                                return(0);
@@ -19,6 +31,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The current priority of this thread.")]
                public int CurrentPriority {
                        get {
                                return(0);
@@ -26,6 +39,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The ID of this thread.")]
                public int Id {
                        get {
                                return(0);
@@ -33,12 +47,14 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
-               int IdealProcessor {
+               [Browsable (false)]
+               public int IdealProcessor {
                        set {
                        }
                }
 
                [MonoTODO]
+               [MonitoringDescription ("Thread gets a priority boot when interactively used by a user.")]
                public bool PriorityBoostEnabled {
                        get {
                                return(false);
@@ -48,6 +64,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The priority level of this thread.")]
                public ThreadPriorityLevel PriorityLevel {
                        get {
                                return(ThreadPriorityLevel.Idle);
@@ -57,6 +74,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The amount of CPU time used in privileged mode.")]
                public TimeSpan PrivilegedProcessorTime {
                        get {
                                return(new TimeSpan(0));
@@ -64,12 +82,14 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
-               IntPtr ProcessorAffinity {
+               [Browsable (false)]
+               public IntPtr ProcessorAffinity {
                        set {
                        }
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The start address in memory of this thread.")]
                public IntPtr StartAddress {
                        get {
                                return((IntPtr)0);
@@ -77,6 +97,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The time this thread was started.")]
                public DateTime StartTime {
                        get {
                                return(new DateTime(0));
@@ -84,6 +105,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The current state of this thread.")]
                public ThreadState ThreadState {
                        get {
                                return(ThreadState.Initialized);
@@ -91,6 +113,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The total amount of CPU time used.")]
                public TimeSpan TotalProcessorTime {
                        get {
                                return(new TimeSpan(0));
@@ -98,6 +121,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The amount of CPU time used in user mode.")]
                public TimeSpan UserProcessorTime {
                        get {
                                return(new TimeSpan(0));
@@ -105,6 +129,7 @@ namespace System.Diagnostics {
                }
 
                [MonoTODO]
+               [MonitoringDescription ("The reason why this thread is waiting.")]
                public ThreadWaitReason WaitReason {
                        get {
                                return(ThreadWaitReason.Executive);