Fixes to Pipe (dotnet/corefx#39390)
authorDavid Fowler <davidfowl@gmail.com>
Fri, 12 Jul 2019 15:34:36 +0000 (08:34 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2019 15:34:36 +0000 (08:34 -0700)
commit3d736a4982c18c5c53f12b262e01182fe62d36a1
tree778847dea6bb5019a3e8a8757b2d75f0681da0a3
parent5382fbef286db6c1e1b27f432aec6905745894d8
parent27600f2bbafaf01a240be03b7dc1f57776995c08
Fixes to Pipe (dotnet/corefx#39390)

* Fixes to Pipe
- Avoid clearing out the writing head in more cases
- Allow returning a fully consumed block even if writing is in progress if it isn't writing using the current block.
- Synchronize call to Advance

* Advance can no longer be inlined

Commit migrated from https://github.com/dotnet/corefx/commit/34765c5934c4b2f45853d323f4c87617cd2f3158