Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ckmalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonKnittel committed Nov 2, 2024
2 parents 27c428d + 6791798 commit 3909235
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tracefile_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ absl::Status TracefileExecutor::ProcessTracefileMultithreaded(
absl::Mutex queue_mutex;
std::deque<uint64_t> queued_idxs;

std::vector<std::jthread> threads;
std::vector<std::thread> threads;
threads.reserve(options.n_threads);

for (uint32_t i = 0; i < options.n_threads; i++) {
Expand All @@ -215,6 +215,10 @@ absl::Status TracefileExecutor::ProcessTracefileMultithreaded(
}
});
}

for (uint32_t i = 0; i < options.n_threads; i++) {
threads[i].join();
}
}

return status;
Expand Down

0 comments on commit 3909235

Please sign in to comment.