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

Function SetCurrentThreadPool

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

Source from the content-addressed store, hash-verified

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

Callers 1

LaunchWorkersUnlockedMethod · 0.85

Calls 2

GetPoolTlsIndexFunction · 0.85
WinErrorMessageFunction · 0.85

Tested by

no test coverage detected