Expand description
Source: Common/src/TimeTrace.cpp:253-261 (hand-ported)
C++:
ThreadContext& getThreadContext()
{
if (auto provider = threadContextProvider())
return provider();
thread_local ThreadContext context;
return context;
}