commit | 8cc9610244e7cdbfd9b3d576050685c37af0d462 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@pigweed.infra.roller.google.com> | Wed Oct 23 19:19:49 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 23 19:19:49 2024 +0000 |
tree | 5cb13da29cecc2cbadedbfb988ea6bd5b1ee0a4c | |
parent | 6ef16f178de4dfd0d69089e208504c03d7ae6f83 [diff] |
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>
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.