diff options
author | Teravus Ovares | 2008-02-22 19:44:46 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-22 19:44:46 +0000 |
commit | 582964800cc30e5ad08cf3be9a6a49fa96dd8b68 (patch) | |
tree | 02ef3aff1bfcbc3bca0d89663396f35e2963ca0a /OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |
parent | * Moved the EventManager over to delegate instances to prevent race conditions. (diff) | |
download | opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.zip opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.gz opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.bz2 opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.xz |
* Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SimStatsReporter.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index 90e09b0..d4868f3 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -39,6 +39,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
39 | 39 | ||
40 | public event SendStatResult OnSendStatsResult; | 40 | public event SendStatResult OnSendStatsResult; |
41 | 41 | ||
42 | private SendStatResult handler001 = null; | ||
43 | |||
42 | private enum Stats : uint | 44 | private enum Stats : uint |
43 | { | 45 | { |
44 | TimeDilation = 0, | 46 | TimeDilation = 0, |
@@ -245,9 +247,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
245 | 247 | ||
246 | statpack.Stat = sb; | 248 | statpack.Stat = sb; |
247 | 249 | ||
248 | if (OnSendStatsResult != null) | 250 | handler001 = OnSendStatsResult; |
251 | if (handler001 != null) | ||
249 | { | 252 | { |
250 | OnSendStatsResult(statpack); | 253 | handler001(statpack); |
251 | } | 254 | } |
252 | resetvalues(); | 255 | resetvalues(); |
253 | m_report.Enabled = true; | 256 | m_report.Enabled = true; |