commit | 6a0ee6b5171443cd20e4eec4257c57ac86800bb9 | [log] [tgz] |
---|---|---|
author | Ben <benlawson@google.com> | Tue Apr 11 23:03:02 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 11 23:03:02 2023 +0000 |
tree | cbc3821f4125d295d21d1dab10eb13c8213c3cc6 | |
parent | bff0a9fe009d99333a977243e267baec6cfadc4f [diff] |
pw_async: Create HeapDispatcher, FunctionDispatcher Create abstract class FunctionDispatcher that extends Dispatcher with Post*() methods that take a TaskFunction instead of a task. Create concrete class HeapDispatcher that implements FunctionDispatcher using new/delete to manage Task memory. Update Dispatcher::Cancel() docs to explain that tasks can be canceled from within a TaskFunction. Change-Id: I6cabe9614cb0b26c4e21f31b4d06713b4e936e42 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/135192 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: 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/.