commit | f605f2d2ed8839b6c9e44b9d62b7b769835b107b | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <prashanthsw@google.com> | Mon May 17 11:49:38 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 18 17:55:29 2021 +0000 |
tree | e33b9a8fda91834db0d1d9289e908e171ee00543 | |
parent | 3d61b3278bde0597cd719aed84f8cc9035cd4527 [diff] |
pw_sync_baremetal: Add simple mutex implementation Adds a dummy mutex implementation for baremetal configurations. The provided implementation makes a single attempt to acquire the lock and asserts if it is unavailable. It does not perform interrupt masking or disable global interrupts, so this implementation does not support simultaneous multi-threaded environments including IRQs, and is only meant to prevent data corruption. Change-Id: Id122f890a37822c3b752b810e0e687f19f8c9dbd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/45721 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Prashanth Swaminathan <prashanthsw@google.com> Reviewed-by: Ewout van Bekkum <ewout@google.com>
See our website: http://pigweed.dev