[roll pigweed] pw_thread: Add FunctionalThread

With new changes in pw::Function which allowed for dynamic allocation it
can be very convenient to create threads with lambdas with capture
lists. Right now, though, it can be done only through the custom
ThreadCore instance.

This CL adds Thread wrapper that does exactly the same - it stores the
ThreadCore instance that runs the pw::Function passed to it.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106913

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 475ac5a3496b5e4..73eeb7710e9ecfd
Roller-URL: https://ci.chromium.org/b/8805557020783433169
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I12da7fd273535fdf2572f3279d9c50ff29d4dd35
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/107192
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: 1e9063a647e938f8e548506c8e6368d3fd0eec9e
  1. .gitmodules
  2. test.sh