commit | 76a563af60437ccc25585481907e8822a55c7cf4 | [log] [tgz] |
---|---|---|
author | Taylor Cramer <cramertj@google.com> | Fri Sep 15 18:17:20 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 15 18:17:20 2023 +0000 |
tree | 7fe320d178bf38476d2600d0c184c9655f5ed05c | |
parent | 4c94ea527a86966d7025eae6d50301042ccbfd1c [diff] |
pw_async_basic: `release` outside of lock context Calling `release` while in a locked context can cause the waiting thread to wake up only to go back to sleep once discovering the lock. Waiting to `release` until after the lock has been unlocked prevents this issue. Change-Id: I7562df94cd5b8c7c231bdb4a94b06f8cf63088fd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/171103 Pigweed-Auto-Submit: Taylor Cramer <cramertj@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Ben Lawson <benlawson@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/.