aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorteravus2013-01-16 17:52:02 -0500
committerteravus2013-01-16 17:52:02 -0500
commit670bb9cb8bb35df4787296f26224d9c89b6db9ca (patch)
tree4902d5bfbc1a632a979c38f26c8cca2ff0fb9de0 /OpenSim/Framework
parent* Document the additional Visual Params of newer browsers in AvatarAppearance... (diff)
parentAdd a way to put things at the front of the queue for any throttle group. (diff)
downloadopensim-SC_OLD-670bb9cb8bb35df4787296f26224d9c89b6db9ca.zip
opensim-SC_OLD-670bb9cb8bb35df4787296f26224d9c89b6db9ca.tar.gz
opensim-SC_OLD-670bb9cb8bb35df4787296f26224d9c89b6db9ca.tar.bz2
opensim-SC_OLD-670bb9cb8bb35df4787296f26224d9c89b6db9ca.tar.xz
Merge remote-tracking branch 'remotes/origin/avination' into teravuswork
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/LocklessQueue.cs8
-rw-r--r--OpenSim/Framework/ThrottleOutPacketType.cs6
2 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Framework/LocklessQueue.cs b/OpenSim/Framework/LocklessQueue.cs
index 84f887c..9bd9baf 100644
--- a/OpenSim/Framework/LocklessQueue.cs
+++ b/OpenSim/Framework/LocklessQueue.cs
@@ -29,7 +29,7 @@ using System.Threading;
29 29
30namespace OpenSim.Framework 30namespace OpenSim.Framework
31{ 31{
32 public sealed class LocklessQueue<T> 32 public class LocklessQueue<T>
33 { 33 {
34 private sealed class SingleLinkNode 34 private sealed class SingleLinkNode
35 { 35 {
@@ -41,7 +41,7 @@ namespace OpenSim.Framework
41 SingleLinkNode tail; 41 SingleLinkNode tail;
42 int count; 42 int count;
43 43
44 public int Count { get { return count; } } 44 public virtual int Count { get { return count; } }
45 45
46 public LocklessQueue() 46 public LocklessQueue()
47 { 47 {
@@ -76,7 +76,7 @@ namespace OpenSim.Framework
76 Interlocked.Increment(ref count); 76 Interlocked.Increment(ref count);
77 } 77 }
78 78
79 public bool Dequeue(out T item) 79 public virtual bool Dequeue(out T item)
80 { 80 {
81 item = default(T); 81 item = default(T);
82 SingleLinkNode oldHead = null; 82 SingleLinkNode oldHead = null;
@@ -136,4 +136,4 @@ namespace OpenSim.Framework
136 (object)Interlocked.CompareExchange<SingleLinkNode>(ref location, newValue, comparand); 136 (object)Interlocked.CompareExchange<SingleLinkNode>(ref location, newValue, comparand);
137 } 137 }
138 } 138 }
139} \ No newline at end of file 139}
diff --git a/OpenSim/Framework/ThrottleOutPacketType.cs b/OpenSim/Framework/ThrottleOutPacketType.cs
index d56231a..87899f0 100644
--- a/OpenSim/Framework/ThrottleOutPacketType.cs
+++ b/OpenSim/Framework/ThrottleOutPacketType.cs
@@ -47,9 +47,8 @@ namespace OpenSim.Framework
47 Texture = 5, 47 Texture = 5,
48 /// <summary>Non-texture assets</summary> 48 /// <summary>Non-texture assets</summary>
49 Asset = 6, 49 Asset = 6,
50 /// <summary>Avatar and primitive data</summary> 50
51 /// <remarks>This is a sub-category of Task</remarks> 51 HighPriority = 128,
52 State = 7,
53 } 52 }
54 53
55 [Flags] 54 [Flags]
@@ -61,6 +60,5 @@ namespace OpenSim.Framework
61 Task = 1 << 3, 60 Task = 1 << 3,
62 Texture = 1 << 4, 61 Texture = 1 << 4,
63 Asset = 1 << 5, 62 Asset = 1 << 5,
64 State = 1 << 6,
65 } 63 }
66} 64}