aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs
diff options
context:
space:
mode:
authorDr Scofield2008-06-27 23:03:39 +0000
committerDr Scofield2008-06-27 23:03:39 +0000
commit748f72326d9a295958bc9ba63bbb1a5d39030ef7 (patch)
tree58f2c9a5f6b8ffab5ad3621070aa17cb1c1e3e6b /ThirdParty/SmartThreadPool/STPPerformanceCounter.cs
parentmore warnings to go. (diff)
downloadopensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.zip
opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.gz
opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.bz2
opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.xz
last round of warning squashing. calling it a day now.
Diffstat (limited to '')
-rw-r--r--ThirdParty/SmartThreadPool/STPPerformanceCounter.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs b/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs
index be70aea..077cf17 100644
--- a/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs
+++ b/ThirdParty/SmartThreadPool/STPPerformanceCounter.cs
@@ -131,13 +131,15 @@ namespace Amib.Threading.Internal
131 // *********** Remark for .NET 2.0 *********** 131 // *********** Remark for .NET 2.0 ***********
132 // If you are here, it means you got the warning that this overload 132 // If you are here, it means you got the warning that this overload
133 // of the method is deprecated in .NET 2.0. To use the correct 133 // of the method is deprecated in .NET 2.0. To use the correct
134 // method overload, uncomment the third argument of the method. 134 // method overload, uncomment the third argument of
135 // the method.
136 #pragma warning disable 0618
135 PerformanceCounterCategory.Create( 137 PerformanceCounterCategory.Create(
136 _stpCategoryName, 138 _stpCategoryName,
137 _stpCategoryHelp, 139 _stpCategoryHelp,
138 //PerformanceCounterCategoryType.MultiInstance, 140 //PerformanceCounterCategoryType.MultiInstance,
139 counters); 141 counters);
140 142 #pragma warning restore 0618
141 } 143 }
142 } 144 }
143 145
@@ -245,7 +247,7 @@ namespace Amib.Threading.Internal
245 public STPInstancePerformanceCounters(string instance) 247 public STPInstancePerformanceCounters(string instance)
246 { 248 {
247 _pcs = new STPInstancePerformanceCounter[(int)STPPerformanceCounterType.LastCounter]; 249 _pcs = new STPInstancePerformanceCounter[(int)STPPerformanceCounterType.LastCounter];
248 STPPerformanceCounters counters = STPPerformanceCounters.Instance; 250 // STPPerformanceCounters counters = STPPerformanceCounters.Instance;
249 for (int i = 0; i < _pcs.Length; i++) 251 for (int i = 0; i < _pcs.Length; i++)
250 { 252 {
251 if (instance != null) 253 if (instance != null)