commit | 099f716e17f2bb3f405addec96efad9cafe23664 | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <prashanthsw@google.com> | Thu Jul 15 13:42:20 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 16 03:24:46 2021 +0000 |
tree | 5aa619ece6ec5e957a84ff3f21c919333194093d | |
parent | 3eb97d4c0673aa1cafcfa99f6de8d5c780a991dc [diff] |
pw_ring_buffer: Add late-reader/drain attach Changes the default behavior of the ring buffer and multisink such that late-attach of a Reader or Drain now places the object at the index of the oldest entry in the buffer. For Readers, the oldest entry corresponds to the slowest reader present. If no readers are present, the Reader is placed at the write head. For Drains, a lagging Reader is always present, so new Drains will always point to the oldest valid entry in the buffer. Change-Id: I2b0da0dd7389b98ff121528a0fed38adfa75daf1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/53344 Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com> Reviewed-by: Ewout van Bekkum <ewout@google.com>
See our website: http://pigweed.dev