diff options
author | John Hurliman | 2009-10-27 00:26:56 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-27 00:26:56 -0700 |
commit | c75d4156487b35aac47aa6818144862a99bb841c (patch) | |
tree | f00f7b485cb3a39477fa77dbd162c40ede533190 /OpenSim/Framework | |
parent | Adding missing CSJ2K reference to OpenSim.Region.Physics.Meshing (diff) | |
download | opensim-SC_OLD-c75d4156487b35aac47aa6818144862a99bb841c.zip opensim-SC_OLD-c75d4156487b35aac47aa6818144862a99bb841c.tar.gz opensim-SC_OLD-c75d4156487b35aac47aa6818144862a99bb841c.tar.bz2 opensim-SC_OLD-c75d4156487b35aac47aa6818144862a99bb841c.tar.xz |
* Converts ClientManager.ForEach() (and as a result, Scene.ForEachClient()) to use a non-blocking parallel method when operating in async mode
* Minor code readability cleanup
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/ClientManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs index 61b59e7..baff2f4 100644 --- a/OpenSim/Framework/ClientManager.cs +++ b/OpenSim/Framework/ClientManager.cs | |||
@@ -204,7 +204,10 @@ namespace OpenSim.Framework | |||
204 | public void ForEach(Action<IClientAPI> action) | 204 | public void ForEach(Action<IClientAPI> action) |
205 | { | 205 | { |
206 | IClientAPI[] localArray = m_array; | 206 | IClientAPI[] localArray = m_array; |
207 | Parallel.ForEach<IClientAPI>(localArray, action); | 207 | Parallel.For(0, localArray.Length, |
208 | delegate(int i) | ||
209 | { action(localArray[i]); } | ||
210 | ); | ||
208 | } | 211 | } |
209 | 212 | ||
210 | /// <summary> | 213 | /// <summary> |