aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ClientManager.cs
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-27 00:26:56 -0700
committerJohn Hurliman2009-10-27 00:26:56 -0700
commitc75d4156487b35aac47aa6818144862a99bb841c (patch)
treef00f7b485cb3a39477fa77dbd162c40ede533190 /OpenSim/Framework/ClientManager.cs
parentAdding missing CSJ2K reference to OpenSim.Region.Physics.Meshing (diff)
downloadopensim-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 'OpenSim/Framework/ClientManager.cs')
-rw-r--r--OpenSim/Framework/ClientManager.cs5
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>