ProcessThread.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //
  2. // System.Diagnostics.ProcessThread.cs
  3. //
  4. // Authors:
  5. // Dick Porter ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc. http://www.ximian.com
  9. //
  10. using System.ComponentModel;
  11. using System.ComponentModel.Design;
  12. namespace System.Diagnostics
  13. {
  14. [Designer ("System.Diagnostics.Design.ProcessThreadDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
  15. public class ProcessThread : Component
  16. {
  17. [MonoTODO ("Parse parameters")]
  18. internal ProcessThread()
  19. {
  20. }
  21. [MonoTODO]
  22. [MonitoringDescription ("The base priority of this thread.")]
  23. public int BasePriority {
  24. get {
  25. return(0);
  26. }
  27. }
  28. [MonoTODO]
  29. [MonitoringDescription ("The current priority of this thread.")]
  30. public int CurrentPriority {
  31. get {
  32. return(0);
  33. }
  34. }
  35. [MonoTODO]
  36. [MonitoringDescription ("The ID of this thread.")]
  37. public int Id {
  38. get {
  39. return(0);
  40. }
  41. }
  42. [MonoTODO]
  43. [Browsable (false)]
  44. public int IdealProcessor {
  45. set {
  46. }
  47. }
  48. [MonoTODO]
  49. [MonitoringDescription ("Thread gets a priority boot when interactively used by a user.")]
  50. public bool PriorityBoostEnabled {
  51. get {
  52. return(false);
  53. }
  54. set {
  55. }
  56. }
  57. [MonoTODO]
  58. [MonitoringDescription ("The priority level of this thread.")]
  59. public ThreadPriorityLevel PriorityLevel {
  60. get {
  61. return(ThreadPriorityLevel.Idle);
  62. }
  63. set {
  64. }
  65. }
  66. [MonoTODO]
  67. [MonitoringDescription ("The amount of CPU time used in privileged mode.")]
  68. public TimeSpan PrivilegedProcessorTime {
  69. get {
  70. return(new TimeSpan(0));
  71. }
  72. }
  73. [MonoTODO]
  74. [Browsable (false)]
  75. public IntPtr ProcessorAffinity {
  76. set {
  77. }
  78. }
  79. [MonoTODO]
  80. [MonitoringDescription ("The start address in memory of this thread.")]
  81. public IntPtr StartAddress {
  82. get {
  83. return((IntPtr)0);
  84. }
  85. }
  86. [MonoTODO]
  87. [MonitoringDescription ("The time this thread was started.")]
  88. public DateTime StartTime {
  89. get {
  90. return(new DateTime(0));
  91. }
  92. }
  93. [MonoTODO]
  94. [MonitoringDescription ("The current state of this thread.")]
  95. public ThreadState ThreadState {
  96. get {
  97. return(ThreadState.Initialized);
  98. }
  99. }
  100. [MonoTODO]
  101. [MonitoringDescription ("The total amount of CPU time used.")]
  102. public TimeSpan TotalProcessorTime {
  103. get {
  104. return(new TimeSpan(0));
  105. }
  106. }
  107. [MonoTODO]
  108. [MonitoringDescription ("The amount of CPU time used in user mode.")]
  109. public TimeSpan UserProcessorTime {
  110. get {
  111. return(new TimeSpan(0));
  112. }
  113. }
  114. [MonoTODO]
  115. [MonitoringDescription ("The reason why this thread is waiting.")]
  116. public ThreadWaitReason WaitReason {
  117. get {
  118. return(ThreadWaitReason.Executive);
  119. }
  120. }
  121. [MonoTODO]
  122. public void ResetIdealProcessor() {
  123. }
  124. }
  125. }