1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

More SRP work (still not working 100%)

This commit is contained in:
lidgren
2010-06-13 21:01:36 +00:00
parent d1bdfe7b58
commit 5d44e391cb
7 changed files with 3708 additions and 147 deletions

View File

@@ -25,7 +25,7 @@ namespace Lidgren.Network
/// <summary>
/// Thread safe (blocking) queue with TryDequeue() and EnqueueFirst()
/// </summary>
[DebuggerDisplay("Count={m_size}")]
[DebuggerDisplay("Count={Count} Capacity={Capacity}")]
public sealed class NetQueue<T>
{
// Example:
@@ -49,6 +49,8 @@ namespace Lidgren.Network
public int Count { get { return m_size; } }
public int Capacity { get { return m_items.Length; } }
public NetQueue(int initialCapacity)
{
m_lock = new object();