Exemple #1
0
 /// <summary>
 /// Attempts to pop and return multiple objects from the top of the concurrent stack atomically.
 /// </summary>
 public static int TryPopRange(SystemConcurrent.ConcurrentStack <T> concurrentStack, T[] items)
 {
     Helper.Interleave();
     return(concurrentStack.TryPopRange(items));
 }
Exemple #2
0
 /// <summary>
 /// Attempts to pop and return multiple objects from the top of the concurrent stack atomically.
 /// </summary>
 public static int TryPopRange(SystemConcurrent.ConcurrentStack <T> concurrentStack, T[] items, int startIndex, int count)
 {
     Helper.Interleave();
     return(concurrentStack.TryPopRange(items, startIndex, count));
 }