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

Function GetPoolTlsIndex

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

Source from the content-addressed store, hash-verified

647
648namespace {
649DWORD GetPoolTlsIndex() {
650 static DWORD index = [] {
651 DWORD i = TlsAlloc();
652 if (i == TLS_OUT_OF_INDEXES) {
653 ARROW_LOG(FATAL) << "TlsAlloc failed for thread pool TLS: "
654 << WinErrorMessage(GetLastError());
655 }
656 return i;
657 }();
658 return index;
659}
660} // namespace
661
662static ThreadPool* GetCurrentThreadPool() {

Callers 2

GetCurrentThreadPoolFunction · 0.85
SetCurrentThreadPoolFunction · 0.85

Calls 1

WinErrorMessageFunction · 0.85

Tested by

no test coverage detected