commit | 7072723dc228e0be0679d67fe8ca4ba87b04e21f | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@pigweed.infra.roller.google.com> | Wed Sep 18 16:37:29 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 18 16:37:29 2024 +0000 |
tree | c4a3d9879c7e482fa0a190f79a0ae8c4e0069ab7 | |
parent | e76a93e1d689d7b5113659f6c23141296dc97723 [diff] |
roll: pigweed pw_thread: Mark legacy function* / void* constructor as deprecated pw::thread::Thread now takes a pw::Function<void()>, which should be used in place of the void(void*) function pointer and void* argument. For example, replace code like the following: void CallBar(void* foo) { static_cast<Foo*>->Bar(); } void StartThread() { Foo foo; thread = Thread(options, CallBar, &foo); ... } with a lambda: void StartThread() { Foo foo; thread = Thread(options, [&foo] { foo.Bar(); }); ... } Original-Bug: b/367786892 Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/236454 Original-Revision: 8a67d6b57b526757ffa010be2be402c42cd13ac4 Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed Rolled-Commits: f8994ac937ee10..8a67d6b57b5267 Roller-URL: https://ci.chromium.org/b/8736441624942311393 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: Ie1f2aedf65522f32210ece5d71e87ffeb3afd6e3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/236737 Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
git clone https://pigweed.googlesource.com/pigweed/showcase/sense
Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.
Please visit Sense: An interactive tour through Pigweed to get started.