commit | c4a481bc6a4941fa73526223d5ef3354e1ea4b5a | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Fri Dec 23 01:54:16 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 23 01:54:16 2022 +0000 |
tree | d7ff6887c5158e3b7049eb2ed3063d86fc1078a4 | |
parent | 505269848e0fddfbefe04e61a9977670f1230732 [diff] |
pw_rpc: Move on_completed_ before invoking it Move the on_completed_ callback to a local variable while holding the RPC lock to fix a race condition. Bug: b/234876851 Change-Id: Ib64cd6b7542198dd0c0a5c08f162f60bf0756001 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/125212 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Alexei Frolov <frolv@google.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/.