roll: pigweed pw_channel: Remove redundant closed state in ForwardingChannelPair

ForwardingChannelPair originally had a closed flag to track whether
either channel was closed. This flag duplicated its channels' read and
write openness flags, and would become out of sync when one channel was
closed.

This change updates ForwardingChannelPair to use the Channels' open
flags instead. When one channel is closed, it closes its sibling channel
for writes. The sibling channel closes itself for reads after returning
any pending data.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/243723
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Original-Revision: efda99e88e567ed42091a28a0964de758ca2225d

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: d8bc075fd61a51..efda99e88e567e
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8733261271658824769
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Idcd45391bd6d841da62908f92bf4f9668250fcad
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/244115
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
1 file changed
tree: 5cb13da29cecc2cbadedbfb988ea6bd5b1ee0a4c
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. MODULE.bazel.lock
  24. OWNERS
  25. pigweed.json
  26. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.