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

Function GetPoolTlsIndex

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

Source from the content-addressed store, hash-verified

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

Callers 2

GetCurrentThreadPoolFunction · 0.85
SetCurrentThreadPoolFunction · 0.85

Calls 1

WinErrorMessageFunction · 0.85

Tested by

no test coverage detected