| 889 | } |
| 890 | |
| 891 | ThreadPool* GetCpuThreadPool() { |
| 892 | // Avoid using a global variable because of initialization order issues (ARROW-18383) |
| 893 | static std::shared_ptr<ThreadPool> singleton = ThreadPool::MakeCpuThreadPool(); |
| 894 | return singleton.get(); |
| 895 | } |
| 896 | |
| 897 | } // namespace internal |
| 898 |