| 824 | } |
| 825 | |
| 826 | ThreadPool* GetCpuThreadPool() { |
| 827 | // Avoid using a global variable because of initialization order issues (ARROW-18383) |
| 828 | static std::shared_ptr<ThreadPool> singleton = ThreadPool::MakeCpuThreadPool(); |
| 829 | return singleton.get(); |
| 830 | } |
| 831 | |
| 832 | } // namespace internal |
| 833 |