MCPcopy Create free account
hub / github.com/apache/arrow / SetCurrentThreadPool

Function SetCurrentThreadPool

cpp/src/arrow/util/thread_pool.cc:679–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679static 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
687thread_local ThreadPool* current_thread_pool_ = nullptr;
688

Callers 1

LaunchWorkersUnlockedMethod · 0.85

Calls 2

GetPoolTlsIndexFunction · 0.85
WinErrorMessageFunction · 0.85

Tested by

no test coverage detected