ProcessThread.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. //
  11. // Permission is hereby granted, free of charge, to any person obtaining
  12. // a copy of this software and associated documentation files (the
  13. // "Software"), to deal in the Software without restriction, including
  14. // without limitation the rights to use, copy, modify, merge, publish,
  15. // distribute, sublicense, and/or sell copies of the Software, and to
  16. // permit persons to whom the Software is furnished to do so, subject to
  17. // the following conditions:
  18. //
  19. // The above copyright notice and this permission notice shall be
  20. // included in all copies or substantial portions of the Software.
  21. //
  22. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  23. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  24. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  25. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  26. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  27. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  28. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  29. //
  30. using System.ComponentModel;
  31. using System.ComponentModel.Design;
  32. namespace System.Diagnostics
  33. {
  34. [Designer ("System.Diagnostics.Design.ProcessThreadDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
  35. public class ProcessThread : Component
  36. {
  37. [MonoTODO ("Parse parameters")]
  38. internal ProcessThread()
  39. {
  40. }
  41. [MonoTODO]
  42. [MonitoringDescription ("The base priority of this thread.")]
  43. public int BasePriority {
  44. get {
  45. return(0);
  46. }
  47. }
  48. [MonoTODO]
  49. [MonitoringDescription ("The current priority of this thread.")]
  50. public int CurrentPriority {
  51. get {
  52. return(0);
  53. }
  54. }
  55. [MonoTODO]
  56. [MonitoringDescription ("The ID of this thread.")]
  57. public int Id {
  58. get {
  59. return(0);
  60. }
  61. }
  62. [MonoTODO]
  63. [Browsable (false)]
  64. public int IdealProcessor {
  65. set {
  66. }
  67. }
  68. [MonoTODO]
  69. [MonitoringDescription ("Thread gets a priority boot when interactively used by a user.")]
  70. public bool PriorityBoostEnabled {
  71. get {
  72. return(false);
  73. }
  74. set {
  75. }
  76. }
  77. [MonoTODO]
  78. [MonitoringDescription ("The priority level of this thread.")]
  79. public ThreadPriorityLevel PriorityLevel {
  80. get {
  81. return(ThreadPriorityLevel.Idle);
  82. }
  83. set {
  84. }
  85. }
  86. [MonoTODO]
  87. [MonitoringDescription ("The amount of CPU time used in privileged mode.")]
  88. public TimeSpan PrivilegedProcessorTime {
  89. get {
  90. return(new TimeSpan(0));
  91. }
  92. }
  93. [MonoTODO]
  94. [Browsable (false)]
  95. public IntPtr ProcessorAffinity {
  96. set {
  97. }
  98. }
  99. [MonoTODO]
  100. [MonitoringDescription ("The start address in memory of this thread.")]
  101. public IntPtr StartAddress {
  102. get {
  103. return((IntPtr)0);
  104. }
  105. }
  106. [MonoTODO]
  107. [MonitoringDescription ("The time this thread was started.")]
  108. public DateTime StartTime {
  109. get {
  110. return(new DateTime(0));
  111. }
  112. }
  113. [MonoTODO]
  114. [MonitoringDescription ("The current state of this thread.")]
  115. public ThreadState ThreadState {
  116. get {
  117. return(ThreadState.Initialized);
  118. }
  119. }
  120. [MonoTODO]
  121. [MonitoringDescription ("The total amount of CPU time used.")]
  122. public TimeSpan TotalProcessorTime {
  123. get {
  124. return(new TimeSpan(0));
  125. }
  126. }
  127. [MonoTODO]
  128. [MonitoringDescription ("The amount of CPU time used in user mode.")]
  129. public TimeSpan UserProcessorTime {
  130. get {
  131. return(new TimeSpan(0));
  132. }
  133. }
  134. [MonoTODO]
  135. [MonitoringDescription ("The reason why this thread is waiting.")]
  136. public ThreadWaitReason WaitReason {
  137. get {
  138. return(ThreadWaitReason.Executive);
  139. }
  140. }
  141. [MonoTODO]
  142. public void ResetIdealProcessor() {
  143. }
  144. }
  145. }