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

◆ IsFull

Definition at line 38 of file AsynchronousChannel.cs.

39 {
40 get
41 {
42 int producerBufferIndex = _producerBufferIndex;
43 int consumerBufferIndex = _consumerBufferIndex;
44 if (producerBufferIndex != consumerBufferIndex - 1)
45 {
46 if (consumerBufferIndex == 0)
47 {
48 return producerBufferIndex == _buffer.Length - 1;
49 }
50 return false;
51 }
52 return true;
53 }
54 }

Referenced by System.Linq.Parallel.AsynchronousChannel< T >.EnqueueChunk(), System.Linq.Parallel.AsynchronousChannel< T >.InternalDequeueChunk(), and System.Linq.Parallel.AsynchronousChannel< T >.WaitUntilNonFull().