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

◆ TryToReuse()

override void System.IO.Pipes.NamedPipeServerStream.TryToReuse ( PipeValueTaskSource source)
inlinepackagevirtual

Reimplemented from System.IO.Pipes.PipeStream.

Definition at line 215 of file NamedPipeServerStream.cs.

216 {
217 base.TryToReuse(source);
218 if (source is ConnectionValueTaskSource value && Interlocked.CompareExchange(ref _reusableConnectionValueTaskSource, value, null) != null)
219 {
220 source._preallocatedOverlapped.Dispose();
221 }
222 }
ConnectionValueTaskSource _reusableConnectionValueTaskSource
static int CompareExchange(ref int location1, int value, int comparand)

References System.IO.Pipes.NamedPipeServerStream._reusableConnectionValueTaskSource, System.Threading.Interlocked.CompareExchange(), System.source, and System.value.