diff options
author | John Hurliman | 2009-10-09 02:10:53 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-09 02:10:53 -0700 |
commit | 494a1e922dd5c86ef54d7a83347ec8ba255e0e83 (patch) | |
tree | eb5a6eb7282007d970f672fe044ab60aea895f07 /OpenSim/Framework/Parallel.cs | |
parent | * Added a lock object for the write functions in LLUDPClientCollection (immut... (diff) | |
download | opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.zip opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.gz opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.bz2 opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.xz |
Calling .Close() on AutoResetEvent and ManualResetEvent (those classes contain an unmanaged resource that will not automatically be disposed when they are GCed), and commenting out some ManualResetEvents that are not in use yet
Diffstat (limited to 'OpenSim/Framework/Parallel.cs')
-rw-r--r-- | OpenSim/Framework/Parallel.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Parallel.cs b/OpenSim/Framework/Parallel.cs index 74537ba..6efdad0 100644 --- a/OpenSim/Framework/Parallel.cs +++ b/OpenSim/Framework/Parallel.cs | |||
@@ -89,6 +89,7 @@ namespace OpenSim.Framework | |||
89 | } | 89 | } |
90 | 90 | ||
91 | threadFinishEvent.WaitOne(); | 91 | threadFinishEvent.WaitOne(); |
92 | threadFinishEvent.Close(); | ||
92 | 93 | ||
93 | if (exception != null) | 94 | if (exception != null) |
94 | throw new Exception(exception.Message, exception); | 95 | throw new Exception(exception.Message, exception); |
@@ -148,6 +149,7 @@ namespace OpenSim.Framework | |||
148 | } | 149 | } |
149 | 150 | ||
150 | threadFinishEvent.WaitOne(); | 151 | threadFinishEvent.WaitOne(); |
152 | threadFinishEvent.Close(); | ||
151 | 153 | ||
152 | if (exception != null) | 154 | if (exception != null) |
153 | throw new Exception(exception.Message, exception); | 155 | throw new Exception(exception.Message, exception); |
@@ -199,6 +201,7 @@ namespace OpenSim.Framework | |||
199 | } | 201 | } |
200 | 202 | ||
201 | threadFinishEvent.WaitOne(); | 203 | threadFinishEvent.WaitOne(); |
204 | threadFinishEvent.Close(); | ||
202 | 205 | ||
203 | if (exception != null) | 206 | if (exception != null) |
204 | throw new Exception(exception.Message, exception); | 207 | throw new Exception(exception.Message, exception); |