commit | 8f0ab437b85c2efd6e2ef54d2fd8c64acd0636b8 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Wed Dec 20 00:22:32 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 20 00:22:32 2023 +0000 |
tree | c5a7266a7b552fbb48d6eb152430084126c47899 | |
parent | 6168f7a58b63b0498bd6decb4992c0fc5d16d7e1 [diff] |
pw_allocator: Add MultiplexAllocator This CL adds an allocator-like type that can multiplex between several sub-allocators. If differs from the `Allocator` API in that each method takes an additional token as a parameter. These tokens are used to identify groups of memory requests and are application-specific. This class facilitates mapping those tokens to platform-specific allocators. This allows applications to use more platform-agnostic dynamic memory, in turning allowing application reuse across mutliple platforms, e.g. several generations of a product. Change-Id: I6ba54d4e14a6f34fad2bf9920b50cfa3ba93d73c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/185027 Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: 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/.