Exemple #1
0
            internal Stack(int maxCapacity, ThreadLocalPool parent, Thread thread)
            {
                this.maxCapacity = maxCapacity;
                this.Parent      = parent;
                this.Thread      = thread;

                this.elements = new Handle[Math.Min(InitialCapacity, maxCapacity)];
            }
Exemple #2
0
 public Stack(int initialCapacity, ThreadLocalPool owner, Thread thread)
     : base(initialCapacity)
 {
     this.Owner  = owner;
     this.Thread = thread;
 }
Exemple #3
0
 public ThreadLocalStack(ThreadLocalPool <T> owner)
 {
     this.owner = owner;
 }