commit | d910aa4f7d1d9bb3bf54e11f820b6320ca2b3b4d | [log] [tgz] |
---|---|---|
author | Taylor Cramer <cramertj@google.com> | Fri Sep 16 01:20:47 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 16 01:20:47 2022 +0000 |
tree | 8552cb0a0b7ec664745a4a4bf7068d912159c9c9 | |
parent | 1fec0b010e7cd6ac8e3f51dcf2890039cfed76b4 [diff] |
pw_rpc: Ensure locks are held during Call::Call Thread safety analysis doesn't check constructors or destructors. This CL introduces `Locked...` arguments to constructors to ensure that they are called under the proper conditions. The CL fixes a number of callsites which were previously not acquiring the lock, and rearranges a number of callsites in order to prevent deadlocks. Change-Id: Ife28f1131ab8620014af3c60e691fba89b476e82 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/110271 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Taylor Cramer <cramertj@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/.