最終更新:2019-02-22 (金) 03:49:26 (1898d)
System.Collections.Concurrent.BlockingCollection
Top / System.Collections.Concurrent.BlockingCollection
例
// キュー(先入れ先出し)を作る var que = new BlockingCollection<int>(MAX_QUE); // または、 var que = new BlockingCollection<int>( new ConcurrentQueue<int>(), MAX_QUE); // スタック(後入れ先出し)を作る var stack = new BlockingCollection<int>( new ConcurrentStack<int>(), MAX_QUE); // データバッグ(取り出し順序不定)を作る var bag = new BlockingCollection<int>( new ConcurrentBag<int>(), MAX_QUE);
参考
関連
- System.Collections.Concurrent.ConcurrentBag?<T>
- System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>
- System.Collections.Concurrent.ConcurrentQueue?<T>
- System.Collections.Concurrent.ConcurrentStack?<T>