llvm-project
c7d2ed43 - Reland [Support][Jobserver][Tests] Simplify default executor init (#168165)

Commit
95 days ago
Reland [Support][Jobserver][Tests] Simplify default executor init (#168165) and make (#165264) Truely recover Executor::getDefaultExecutor. The previous change missed std::unique_ptr, which is needed in a normal program exit, since only with that ThreadPoolExecutor destructor will be called in a normal program exit, where it ensures the executor has been stopped and waits for worker threads to finish. The wait is important as it prevents intermittent crashes on Windows when the process is doing a full exit.
Author
Parents
Loading