| 677 | } |
| 678 | |
| 679 | static void SetCurrentThreadPool(ThreadPool* pool) { |
| 680 | BOOL ok = TlsSetValue(GetPoolTlsIndex(), pool); |
| 681 | if (!ok) { |
| 682 | ARROW_LOG(FATAL) << "TlsSetValue failed for thread pool TLS: " |
| 683 | << WinErrorMessage(GetLastError()); |
| 684 | } |
| 685 | } |
| 686 | # else |
| 687 | thread_local ThreadPool* current_thread_pool_ = nullptr; |
| 688 |
no test coverage detected