Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AsynchronousChannel() [2/2]

System.Linq.Parallel.AsynchronousChannel< T >.AsynchronousChannel ( int index,
int capacity,
int chunkSize,
CancellationToken cancellationToken,
IntValueEvent consumerEvent )
inlinepackage

Definition at line 65 of file AsynchronousChannel.cs.

66 {
67 if (chunkSize == 0)
68 {
69 chunkSize = Scheduling.GetDefaultChunkSize<T>();
70 }
71 _index = index;
72 _buffer = new T[capacity + 1][];
76 _consumerEvent = consumerEvent;
77 _chunkSize = chunkSize;
78 _producerChunk = new T[chunkSize];
81 }
readonly CancellationToken _cancellationToken

References System.Linq.Parallel.AsynchronousChannel< T >._buffer, System.Linq.Parallel.AsynchronousChannel< T >._cancellationToken, System.Linq.Parallel.AsynchronousChannel< T >._chunkSize, System.Linq.Parallel.AsynchronousChannel< T >._consumerBufferIndex, System.Linq.Parallel.AsynchronousChannel< T >._consumerEvent, System.Linq.Parallel.AsynchronousChannel< T >._index, System.Linq.Parallel.AsynchronousChannel< T >._producerBufferIndex, System.Linq.Parallel.AsynchronousChannel< T >._producerChunk, System.Linq.Parallel.AsynchronousChannel< T >._producerChunkIndex, System.Linq.Parallel.AsynchronousChannel< T >._producerEvent, System.cancellationToken, System.capacity, and System.Linq.index.