| 882 | } |
| 883 | |
| 884 | ThreadPool* GetCpuThreadPool() { |
| 885 | // Avoid using a global variable because of initialization order issues (ARROW-18383) |
| 886 | static std::shared_ptr<ThreadPool> singleton = ThreadPool::MakeCpuThreadPool(); |
| 887 | return singleton.get(); |
| 888 | } |
| 889 | |
| 890 | } // namespace internal |
| 891 |