commit | 446c169b0fbf39f0ae3dd1880cae2ec04e81d836 | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Wed Jun 08 18:17:44 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 08 19:16:28 2022 +0000 |
tree | 63e5e5504e37dfd25f71773ebe6f9ad371646ce2 | |
parent | 0e4d1804edccde5229c0af4d75f6f4741bd93b35 [diff] |
pw_rpc: Add total_payloads to FakeChannelOutput FakeChannelOutput.payloads provides a view to the payloads seen for given RPC, but it can't be used when the same Output is written to by other threads. total_payloads() method is a thread-safe shortcut that returns only the number of seen payloads and can be used in tests where polling for the specific RPC payload is needed. Change-Id: I3e65b015661c164aa92745780eee0d9011371fe6 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/97561 Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/