aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2012-03-21 23:15:32 +0000
committerUbitUmarov2012-03-21 23:15:32 +0000
commitdc90c535961430196cbe1665a22e80937d632d3f (patch)
treeac0502d0716cdb1103d80f12b9bb621cb69a8fa4 /OpenSim
parentStop messing order of updates, destroing the defined order of the selected pr... (diff)
downloadopensim-SC_OLD-dc90c535961430196cbe1665a22e80937d632d3f.zip
opensim-SC_OLD-dc90c535961430196cbe1665a22e80937d632d3f.tar.gz
opensim-SC_OLD-dc90c535961430196cbe1665a22e80937d632d3f.tar.bz2
opensim-SC_OLD-dc90c535961430196cbe1665a22e80937d632d3f.tar.xz
reverted priorityQueue changes
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/PriorityQueue.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Framework/PriorityQueue.cs b/OpenSim/Framework/PriorityQueue.cs
index fe2a351..7fa1981 100644
--- a/OpenSim/Framework/PriorityQueue.cs
+++ b/OpenSim/Framework/PriorityQueue.cs
@@ -139,12 +139,7 @@ namespace OpenSim.Framework
139 { 139 {
140 // If there is anything in priority queue 0, return it first no 140 // If there is anything in priority queue 0, return it first no
141 // matter what else. Breaks fairness. But very useful. 141 // matter what else. Breaks fairness. But very useful.
142// for (int iq = 0; iq < NumberOfImmediateQueues; iq++) 142 for (int iq = 0; iq < NumberOfImmediateQueues; iq++)
143
144
145 // keep original order
146
147 for (int iq = 0; iq < NumberOfQueues; iq++)
148 { 143 {
149 if (m_heaps[iq].Count > 0) 144 if (m_heaps[iq].Count > 0)
150 { 145 {
@@ -156,7 +151,7 @@ namespace OpenSim.Framework
156 return true; 151 return true;
157 } 152 }
158 } 153 }
159/* 154
160 // To get the fair queing, we cycle through each of the 155 // To get the fair queing, we cycle through each of the
161 // queues when finding an element to dequeue. 156 // queues when finding an element to dequeue.
162 // We pull (NumberOfQueues - QueueIndex) items from each queue in order 157 // We pull (NumberOfQueues - QueueIndex) items from each queue in order
@@ -198,7 +193,7 @@ namespace OpenSim.Framework
198 return true; 193 return true;
199 } 194 }
200 } 195 }
201*/ 196
202 timeinqueue = 0; 197 timeinqueue = 0;
203 value = default(IEntityUpdate); 198 value = default(IEntityUpdate);
204 return false; 199 return false;