Remove static initializers (#2059)

* Remove static initializers in device.cpp, load.cpp, pocketfft.h

* Remove static initializer InTracing::trace_stack

* Remove static initializer of CompilerCache cache

* Revert changes in pocketfft.h

* Remove duplicate private section of thread_pool()
This commit is contained in:
hdeng-apple
2025-04-24 21:14:49 +08:00
committed by GitHub
parent fbc89e3ced
commit 86984cad68
6 changed files with 37 additions and 22 deletions

View File

@@ -101,7 +101,7 @@ class ParallelFileReader : public Reader {
private:
static constexpr size_t batch_size_ = 1 << 25;
static ThreadPool thread_pool_;
static ThreadPool& thread_pool();
int fd_;
std::string label_;
};