modules/pubsub: Invoke subscriber callbacks without locks held

This updates the pubsub code to separately track the presence of a
subscriber and its callback function, allowing the callback to be
invoked without holding a lock.

Change-Id: I6658a6987d11440fa8b3b9710379df54eb2f19d9
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/71369
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
3 files changed
tree: 6dcf9c962f8ce42f6b175a3822e8017590608d26
  1. .vscode/
  2. apps/
  3. device/
  4. modules/
  5. system/
  6. targets/
  7. tools/
  8. .bazelignore
  9. .bazelrc
  10. .bazelversion
  11. .clang-format
  12. .gitignore
  13. .pw_console.yaml
  14. AUTHORS
  15. BUILD.bazel
  16. CONTRIBUTING.md
  17. LICENSE
  18. OWNERS
  19. pigweed.json
  20. README.md
  21. WORKSPACE
README.md

Pigweed Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Pigweed.