7 writes to Value
System.Threading.Tasks.Dataflow (7)
Internal\SourceCore.cs (5)
81
private PaddedInt64 _nextMessageId = new PaddedInt64 {
Value
= 1 }; // We are going to use this value before incrementing. Protected by ValueLock.
200
_nextMessageId.
Value
++;
297
_nextMessageId.
Value
++;
350
_nextMessageId.
Value
++;
630
_nextMessageId.
Value
++;
Internal\TargetCore.cs (2)
217
long messageId = _nextAvailableInputMessageId.
Value
++;
659
messageId = _nextAvailableInputMessageId.
Value
++; // optimistically assign an ID
5 references to Value
System.Threading.Tasks.Dataflow (5)
Internal\SourceCore.cs (5)
190
if (messageHeader.Id != _nextMessageId.
Value
||
233
if (messageHeader.Id == _nextMessageId.
Value
&& !_messages.IsEmpty)
260
if (messageHeader.Id != _nextMessageId.
Value
|| _messages.IsEmpty) throw new InvalidOperationException(SR.InvalidOperation_MessageNotReservedByTarget);
568
header = new DataflowMessageHeader(_nextMessageId.
Value
);
625
if (_nextMessageId.
Value
!= header.Id ||