1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-12 16:22:22 +01:00
This commit is contained in:
J. Nick Koston
2025-07-04 12:59:11 -05:00
parent 9c22772758
commit b7fca5488a

View File

@@ -32,6 +32,7 @@ void DeferStressComponent::run_multi_thread_test() {
ESP_LOGI(TAG, "Creating %d threads, each will defer %d callbacks", NUM_THREADS, DEFERS_PER_THREAD);
threads.reserve(NUM_THREADS);
for (int i = 0; i < NUM_THREADS; i++) {
threads.emplace_back([this, i]() {
ESP_LOGV(TAG, "Thread %d starting", i);