commit | 2def2aa79a6baf81d664fba56a0a747d075eabf2 | [log] [tgz] |
---|---|---|
author | Protobuf Team Bot <protobuf-github-bot@google.com> | Sat Sep 13 00:33:00 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Sep 13 00:36:24 2025 -0700 |
tree | 987dae26f46a823cab83942f777ab5f6f36c02e6 | |
parent | baec31cabede947bdfe687fed17a01746cea3993 [diff] |
Automated Code Change PiperOrigin-RevId: 806574689
diff --git a/src/google/protobuf/compiler/cpp/tools/analyze_profile_proto.cc b/src/google/protobuf/compiler/cpp/tools/analyze_profile_proto.cc index 071d355..666ccb3 100644 --- a/src/google/protobuf/compiler/cpp/tools/analyze_profile_proto.cc +++ b/src/google/protobuf/compiler/cpp/tools/analyze_profile_proto.cc
@@ -560,7 +560,7 @@ ParallelRunResults results; { ThreadPool threads{static_cast<int>(std::min(num_runs, num_workers))}; - threads.StartWorkers(); + for (size_t i = 0; i < num_runs; ++i) { threads.Schedule([i, num_runs, get_run_id, do_work, &results, &mu]() { // Asynchronous section.